2020-01-21 18:21:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
2021-03-24 16:45:56 +00:00
|
|
|
, futures ? null
|
2020-01-21 18:21:51 +00:00
|
|
|
, docloud
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "docplex";
|
2022-03-22 13:37:11 +00:00
|
|
|
version = "2.23.222";
|
2020-01-21 18:21:51 +00:00
|
|
|
|
|
|
|
# No source available from official repo
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-03-22 13:37:11 +00:00
|
|
|
sha256 = "sha256-c5XpfEGTkojgzk+ATHCSzzh04zeEVJEEKBp+lPfS+x4=";
|
2020-01-21 18:21:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|