2020-01-21 18:21:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, futures
|
|
|
|
, docloud
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "docplex";
|
2020-12-16 17:08:35 +00:00
|
|
|
version = "2.19.202";
|
2020-01-21 18:21:51 +00:00
|
|
|
|
|
|
|
# No source available from official repo
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-16 17:08:35 +00:00
|
|
|
sha256 = "2b606dc645f99feae67dfc528620dddc773ecef5d59bcaeae68bba601f25162b";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|