3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/docplex/default.nix
2021-06-21 17:01:43 -07:00

35 lines
762 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, futures ? null
, docloud
, requests
}:
buildPythonPackage rec {
pname = "docplex";
version = "2.21.207";
# No source available from official repo
src = fetchPypi {
inherit pname version;
sha256 = "4f1781592be2b093db939772db8c6575a0f017041fb0cfd784bedf4222ac5e58";
};
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 ];
};
}