mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
35 lines
742 B
Nix
35 lines
742 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy27
|
|
, futures
|
|
, docloud
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "docplex";
|
|
version = "2.20.204";
|
|
|
|
# No source available from official repo
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-JNjD9UtLHsMGwTuXydZ+L5+pPQ2eobkr26Yt9pgs1qA=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|