Files
nixpkgs/pkgs/development/python-modules/pyomo/default.nix
2025-08-31 14:23:18 +00:00

67 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
cython,
fetchFromGitHub,
parameterized,
ply,
pybind11,
pytestCheckHook,
pythonOlder,
setuptools,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
pname = "pyomo";
version = "6.9.4";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
repo = "pyomo";
owner = "pyomo";
tag = version;
hash = "sha256-iH6vxxA/CdPCXqiw3BUmhUwhS2hfwaJy5jIic4id0Jw=";
};
build-system = [
cython
pybind11
setuptools
];
dependencies = [ ply ];
nativeCheckInputs = [
parameterized
pytestCheckHook
writableTmpDirAsHomeHook
];
pythonImportsCheck = [ "pyomo" ];
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 = "Python Optimization Modeling Objects";
homepage = "http://www.pyomo.org/";
changelog = "https://github.com/Pyomo/pyomo/releases/tag/${src.tag}";
license = licenses.bsd3;
maintainers = [ ];
mainProgram = "pyomo";
};
}