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

python3Packages.docplex: fix build
This commit is contained in:
OTABI Tomoya 2024-05-12 12:04:40 +09:00 committed by GitHub
commit 26335efe9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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