Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
932 B · 50 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ lib, cbc, amply, buildPythonPackage, fetchFromGitHub, pyparsing, pythonOlder, pytestCheckHook}:
buildPythonPackage rec { pname = "pulp"; version = "2.8.0"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "coin-or"; repo = pname; rev = "refs/tags/${version}"; hash = "sha256-lpbk1GeC8F/iLGV8G5RPHghnaM9eL82YekUYEt9+mvc="; };
postPatch = '' sed -i pulp/pulp.cfg.linux \ -e 's|CbcPath = .*|CbcPath = ${cbc}/bin/cbc|' \ -e 's|PulpCbcPath = .*|PulpCbcPath = ${cbc}/bin/cbc|' '';
propagatedBuildInputs = [ amply pyparsing ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pulp" ];
meta = with lib; { description = "Module to generate MPS or LP files"; homepage = "https://github.com/coin-or/pulp"; license = licenses.mit; maintainers = with maintainers; [ teto ]; };}