2020-01-21 18:21:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, futures
|
|
|
|
, 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 ];
|
|
|
|
};
|
|
|
|
}
|