diff options
-rw-r--r-- | pkgs/development/python-modules/docplex/default.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/docplex/default.nix b/pkgs/development/python-modules/docplex/default.nix index 29395e91a5f1d..dde6772864b3a 100644 --- a/pkgs/development/python-modules/docplex/default.nix +++ b/pkgs/development/python-modules/docplex/default.nix @@ -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 |