Merge pull request #171383 from fabaff/pyomo-fix

python310Packages.pyomo: 6.3.0 -> 6.4.0
main
Fabian Affolter 2 years ago committed by GitHub
commit 958d48135b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 56
      pkgs/development/python-modules/pyomo/default.nix

@ -1,48 +1,60 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, pyutilib
, appdirs
, parameterized
, ply
, six
, nose
, glpk
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyomo";
version = "6.3.0";
disabled = isPy27; # unable to import pyutilib.th
version = "6.4.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
repo = "pyomo";
owner = "pyomo";
rev = version;
sha256 = "sha256-xyjiB5fDRf5y9Av5Cr+8wtU4pHzMHsM45mcmJEOaTWs=";
hash = "sha256-FdUhne5Dn5hTIXMce1G6Zu6nx+AuP/JdK0a5fCE3hg8=";
};
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
checkInputs = [
parameterized
pytestCheckHook
];
pythonImportsCheck = [
"pyomo"
];
preCheck = ''
export HOME=$(mktemp -d);
'';
disabledTestPaths = [
# Don't test the documentation and the examples
"doc/"
"examples/"
# Tests don't work properly in the sandbox
"pyomo/environ/tests/test_environ.py"
];
disabledTests = [
# Test requires lsb_release
"test_get_os_version"
];
meta = with lib; {
description = "Pyomo: Python Optimization Modeling Objects";
description = "Python Optimization Modeling Objects";
homepage = "http://pyomo.org";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
maintainers = with maintainers; [ costrouc ];
};
}

Loading…
Cancel
Save