Unverified Commit 26335efe authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

Merge pull request #310672 from Scrumplex/pkgs/docplex/fix-build

python3Packages.docplex: fix build
parents 8d1f2faa d9f156d4
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
, buildPythonPackage
, fetchPypi
, isPy27
, setuptools
, futures ? null
, docloud
, requests
@@ -10,7 +11,7 @@
buildPythonPackage rec {
  pname = "docplex";
  version = "2.27.239";
  format = "setuptools";
  pyproject = true;

  # No source available from official repo
  src = fetchPypi {
@@ -18,6 +19,15 @@ buildPythonPackage rec {
    hash = "sha256-Ug5+jDBBbamqd0JebzHvjLZoTRRPYWQiJl6g8BK0aMQ=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail "setuptools~=68.2.2" "setuptools>=68.2.2"
  '';

  build-system = [
    setuptools
  ];

  propagatedBuildInputs = [
    docloud
    requests