Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 34 lines 749 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy27 5, futures ? null 6, docloud 7, requests 8}: 9 10buildPythonPackage rec { 11 pname = "docplex"; 12 version = "2.20.204"; 13 14 # No source available from official repo 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "sha256-JNjD9UtLHsMGwTuXydZ+L5+pPQ2eobkr26Yt9pgs1qA="; 18 }; 19 20 propagatedBuildInputs = [ 21 docloud 22 requests 23 ] ++ lib.optional isPy27 futures; 24 25 doCheck = false; 26 pythonImportsCheck = [ "docplex" ]; 27 28 meta = with lib; { 29 description = "IBM Decision Optimization CPLEX Modeling for Python"; 30 homepage = "https://onboarding-oaas.docloud.ibmcloud.com/software/analytics/docloud/"; 31 license = licenses.asl20; 32 maintainers = with maintainers; [ drewrisinger ]; 33 }; 34}