nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 63 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 cython, 5 fetchFromGitHub, 6 parameterized, 7 ply, 8 pybind11, 9 pytestCheckHook, 10 setuptools, 11 writableTmpDirAsHomeHook, 12}: 13 14buildPythonPackage rec { 15 pname = "pyomo"; 16 version = "6.9.5"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 repo = "pyomo"; 21 owner = "pyomo"; 22 tag = version; 23 hash = "sha256-DHA/OukSK1p65imJEZg7hbErJGL7aQiDbW4vUUuSEko="; 24 }; 25 26 build-system = [ 27 cython 28 pybind11 29 setuptools 30 ]; 31 32 dependencies = [ ply ]; 33 34 nativeCheckInputs = [ 35 parameterized 36 pytestCheckHook 37 writableTmpDirAsHomeHook 38 ]; 39 40 pythonImportsCheck = [ "pyomo" ]; 41 42 disabledTestPaths = [ 43 # Don't test the documentation and the examples 44 "doc/" 45 "examples/" 46 # Tests don't work properly in the sandbox 47 "pyomo/environ/tests/test_environ.py" 48 ]; 49 50 disabledTests = [ 51 # Test requires lsb_release 52 "test_get_os_version" 53 ]; 54 55 meta = { 56 description = "Python Optimization Modeling Objects"; 57 homepage = "http://www.pyomo.org/"; 58 changelog = "https://github.com/Pyomo/pyomo/releases/tag/${src.tag}"; 59 license = lib.licenses.bsd3; 60 maintainers = [ ]; 61 mainProgram = "pyomo"; 62 }; 63}