depot/third_party/nixpkgs/pkgs/development/python-modules/pyomo/default.nix
Default email 14910f5943 Project import generated by Copybara.
GitOrigin-RevId: 5aaed40d22f0d9376330b6fa413223435ad6fee5
2022-01-13 15:06:32 -05:00

48 lines
933 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, pyutilib
, appdirs
, ply
, six
, nose
, glpk
}:
buildPythonPackage rec {
pname = "pyomo";
version = "5.7.3";
disabled = isPy27; # unable to import pyutilib.th
src = fetchFromGitHub {
repo = "pyomo";
owner = "pyomo";
rev = version;
sha256 = "sha256-p0/DdCwyXdzXElzjWewKs0Oi7BMXC+BxgYikdZL0t68=";
};
checkInputs = [ nose glpk ];
propagatedBuildInputs = [
pyutilib
appdirs
ply
six
];
checkPhase = ''
rm pyomo/bilevel/tests/test_blp.py \
pyomo/version/tests/test_installer.py \
pyomo/common/tests/test_download.py \
pyomo/core/tests/examples/test_pyomo.py
export HOME=$TMPDIR
nosetests
'';
meta = with lib; {
description = "Pyomo: Python Optimization Modeling Objects";
homepage = "http://pyomo.org";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}