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 , buildPythonPackage
, fetchPypi , fetchPypi
, isPy27 , isPy27
, setuptools
, futures ? null , futures ? null
, docloud , docloud
, requests , requests
@ -10,7 +11,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "docplex"; pname = "docplex";
version = "2.27.239"; version = "2.27.239";
format = "setuptools"; pyproject = true;
# No source available from official repo # No source available from official repo
src = fetchPypi { src = fetchPypi {
@ -18,6 +19,15 @@ buildPythonPackage rec {
hash = "sha256-Ug5+jDBBbamqd0JebzHvjLZoTRRPYWQiJl6g8BK0aMQ="; hash = "sha256-Ug5+jDBBbamqd0JebzHvjLZoTRRPYWQiJl6g8BK0aMQ=";
}; };
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools~=68.2.2" "setuptools>=68.2.2"
'';
build-system = [
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
docloud docloud
requests requests