at 24.05-pre 868 B view raw
1{ lib 2, amply 3, buildPythonPackage 4, fetchFromGitHub 5, pyparsing 6, pythonOlder 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "pulp"; 12 version = "2.7.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "coin-or"; 19 repo = pname; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-j0f6OiscJyTqPNyLp0qWRjCGLWuT3HdU1S/sxpnsiMo="; 22 }; 23 24 propagatedBuildInputs = [ 25 amply 26 pyparsing 27 ]; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 ]; 32 33 pythonImportsCheck = [ 34 "pulp" 35 ]; 36 37 disabledTests = [ 38 # The solver is not available 39 "PULP_CBC_CMDTest" 40 "test_examples" 41 ]; 42 43 meta = with lib; { 44 description = "Module to generate generate MPS or LP files"; 45 homepage = "https://github.com/coin-or/pulp"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ teto ]; 48 }; 49}