Merge pull request #199656 from r-ryantm/auto-update/python3.10-PuLP

python310Packages.pulp: 2.6.0 -> 2.7.0

authored by

Fabian Affolter and committed by
GitHub
4d930843 3a835b51

+33 -13
+33 -13
pkgs/development/python-modules/pulp/default.nix
··· 1 1 { lib 2 - , fetchPypi 2 + , amply 3 3 , buildPythonPackage 4 + , fetchFromGitHub 4 5 , pyparsing 5 - , amply 6 + , pythonOlder 7 + , pytestCheckHook 6 8 }: 7 9 8 10 buildPythonPackage rec { 9 - pname = "PuLP"; 10 - version = "2.6.0"; 11 + pname = "pulp"; 12 + version = "2.7.0"; 13 + format = "setuptools"; 14 + 15 + disabled = pythonOlder "3.7"; 11 16 12 - src = fetchPypi { 13 - inherit pname version; 14 - sha256 = "4b4f7e1e954453e1b233720be23aea2f10ff068a835ac10c090a93d8e2eb2e8d"; 17 + src = fetchFromGitHub { 18 + owner = "coin-or"; 19 + repo = pname; 20 + rev = "refs/tags/${version}"; 21 + hash = "sha256-j0f6OiscJyTqPNyLp0qWRjCGLWuT3HdU1S/sxpnsiMo="; 15 22 }; 16 23 17 - propagatedBuildInputs = [ pyparsing amply ]; 24 + propagatedBuildInputs = [ 25 + amply 26 + pyparsing 27 + ]; 18 28 19 - # only one test that requires an extra 20 - doCheck = false; 21 - pythonImportsCheck = [ "pulp" ]; 29 + checkInputs = [ 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 + ]; 22 42 23 43 meta = with lib; { 44 + description = "Module to generate generate MPS or LP files"; 24 45 homepage = "https://github.com/coin-or/pulp"; 25 - description = "PuLP is an LP modeler written in python"; 46 + license = licenses.mit; 26 47 maintainers = with maintainers; [ teto ]; 27 - license = licenses.mit; 28 48 }; 29 49 }