about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2024-05-11 20:13:01 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2024-05-11 20:13:01 +0200
commit16cf6a0fa020f74ac5423cf3aae9b7f1b5264f9e (patch)
treeb3babbea4be3848e5569f8aee384faaf65ce5148
parent48b4f3d51c39a3af9c26fe1f1f848c7360bea545 (diff)
python312Packages.pyomo: refactor
-rw-r--r--pkgs/development/python-modules/pyomo/default.nix13
1 files changed, 9 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/pyomo/default.nix b/pkgs/development/python-modules/pyomo/default.nix
index 746ace865eec5..b410395b75159 100644
--- a/pkgs/development/python-modules/pyomo/default.nix
+++ b/pkgs/development/python-modules/pyomo/default.nix
@@ -5,12 +5,13 @@
 , ply
 , pytestCheckHook
 , pythonOlder
+, setuptools
 }:
 
 buildPythonPackage rec {
   pname = "pyomo";
   version = "6.7.2";
-  format = "setuptools";
+  pyproject = true;
 
   disabled = pythonOlder "3.8";
 
@@ -21,7 +22,11 @@ buildPythonPackage rec {
     hash = "sha256-v3KVb9KZPbUlpRySzJV8dmApScKT06aJc8SULCHcnPI=";
   };
 
-  propagatedBuildInputs = [
+  build-system = [
+    setuptools
+  ];
+
+  dependencies = [
     ply
   ];
 
@@ -53,10 +58,10 @@ buildPythonPackage rec {
 
   meta = with lib; {
     description = "Python Optimization Modeling Objects";
-    mainProgram = "pyomo";
-    homepage = "http://pyomo.org";
+    homepage = "http://www.pyomo.org/";
     changelog = "https://github.com/Pyomo/pyomo/releases/tag/${version}";
     license = licenses.bsd3;
     maintainers = with maintainers; [ ];
+    mainProgram = "pyomo";
   };
 }