8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
34 lines
755 B
Nix
34 lines
755 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy27
|
|
, futures
|
|
, docloud
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "docplex";
|
|
version = "2.12.182";
|
|
|
|
# No source available from official repo
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "aaf150b06d44f07639aca48be1fca69c7732d57507e6adc4e8451c7a93489116";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|