depot/third_party/nixpkgs/pkgs/development/python-modules/docplex/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

45 lines
946 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, setuptools
, futures ? null
, docloud
, requests
}:
buildPythonPackage rec {
pname = "docplex";
version = "2.27.239";
pyproject = true;
# No source available from official repo
src = fetchPypi {
inherit pname version;
hash = "sha256-Ug5+jDBBbamqd0JebzHvjLZoTRRPYWQiJl6g8BK0aMQ=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools~=68.2.2" "setuptools>=68.2.2"
'';
build-system = [
setuptools
];
propagatedBuildInputs = [
docloud
requests
] ++ lib.optional isPy27 futures;
doCheck = false;
pythonImportsCheck = [ "docplex" ];
meta = with lib; {
description = "IBM Decision Optimization CPLEX Modeling for Python";
homepage = "https://onboarding-oaas.docloud.ibmcloud.com/software/analytics/docloud/";
license = licenses.asl20;
maintainers = with maintainers; [ drewrisinger ];
};
}