depot/third_party/nixpkgs/pkgs/development/python-modules/pulp/default.nix
Default email 1be0098156 Project import generated by Copybara.
GitOrigin-RevId: 667e5581d16745bcda791300ae7e2d73f49fff25
2022-11-04 13:27:35 +01:00

49 lines
862 B
Nix

{ lib
, amply
, buildPythonPackage
, fetchFromGitHub
, pyparsing
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pulp";
version = "2.7.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "coin-or";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-j0f6OiscJyTqPNyLp0qWRjCGLWuT3HdU1S/sxpnsiMo=";
};
propagatedBuildInputs = [
amply
pyparsing
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pulp"
];
disabledTests = [
# The solver is not available
"PULP_CBC_CMDTest"
"test_examples"
];
meta = with lib; {
description = "Module to generate generate MPS or LP files";
homepage = "https://github.com/coin-or/pulp";
license = licenses.mit;
maintainers = with maintainers; [ teto ];
};
}