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";
|
2021-02-10 16:53:26 +00:00
|
|
|
version = "2.20.204";
|
2020-01-21 18:21:51 +00:00
|
|
|
|
|
|
|
# No source available from official repo
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-10 16:53:26 +00:00
|
|
|
sha256 = "sha256-JNjD9UtLHsMGwTuXydZ+L5+pPQ2eobkr26Yt9pgs1qA=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|