mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
python310Packages.pulp: disable on older Python releases
- prepare to run the tests
This commit is contained in:
parent
2435d48ae7
commit
9027598655
@ -1,29 +1,49 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, fetchPypi
|
|
||||||
, buildPythonPackage
|
|
||||||
, pyparsing
|
|
||||||
, amply
|
, amply
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pyparsing
|
||||||
|
, pythonOlder
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "PuLP";
|
pname = "pulp";
|
||||||
version = "2.7.0";
|
version = "2.7.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchPypi {
|
disabled = pythonOlder "3.7";
|
||||||
inherit pname version;
|
|
||||||
sha256 = "sha256-5z7msy1jnJuM9LSt7TNLoVi+X4MTVE4Fb3lqzgoQrmM=";
|
src = fetchFromGitHub {
|
||||||
|
owner = "coin-or";
|
||||||
|
repo = pname;
|
||||||
|
rev = "refs/tags/${version}";
|
||||||
|
hash = "sha256-j0f6OiscJyTqPNyLp0qWRjCGLWuT3HdU1S/sxpnsiMo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ pyparsing amply ];
|
propagatedBuildInputs = [
|
||||||
|
amply
|
||||||
|
pyparsing
|
||||||
|
];
|
||||||
|
|
||||||
# only one test that requires an extra
|
checkInputs = [
|
||||||
doCheck = false;
|
pytestCheckHook
|
||||||
pythonImportsCheck = [ "pulp" ];
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"pulp"
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# The solver is not available
|
||||||
|
"PULP_CBC_CMDTest"
|
||||||
|
"test_examples"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
description = "Module to generate generate MPS or LP files";
|
||||||
homepage = "https://github.com/coin-or/pulp";
|
homepage = "https://github.com/coin-or/pulp";
|
||||||
description = "PuLP is an LP modeler written in python";
|
|
||||||
maintainers = with maintainers; [ teto ];
|
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ teto ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user