8a45d4525b
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
34 lines
749 B
Nix
34 lines
749 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy27
|
|
, futures ? null
|
|
, docloud
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "docplex";
|
|
version = "2.23.222";
|
|
|
|
# No source available from official repo
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-c5XpfEGTkojgzk+ATHCSzzh04zeEVJEEKBp+lPfS+x4=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|