504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
35 lines
772 B
Nix
35 lines
772 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy27
|
|
, futures ? null
|
|
, docloud
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "docplex";
|
|
version = "2.25.236";
|
|
format = "setuptools";
|
|
|
|
# No source available from official repo
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-JWkUtMAROk4cePMuogx9dtyO/ihv6JAnDnXPrVD+UQ8=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|