about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2024-04-12 10:37:02 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2024-04-12 10:37:02 +0200
commita726656b84a4cdd3f8ed986bb92742f013596805 (patch)
treef2763c31ce6c5458a7aea5beb4c202d704a8aefa
parent827ce2d1f7dd3b54819ade3ef2a99d1923cd036e (diff)
python312Packages.gekko: refactor
-rw-r--r--pkgs/development/python-modules/gekko/default.nix27
1 files changed, 16 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/gekko/default.nix b/pkgs/development/python-modules/gekko/default.nix
index 49ea88b90c091..745898f8992da 100644
--- a/pkgs/development/python-modules/gekko/default.nix
+++ b/pkgs/development/python-modules/gekko/default.nix
@@ -1,35 +1,40 @@
-{ fetchPypi
-, lib
+{ lib
 , buildPythonPackage
-, setuptools
+, fetchPypi
 , numpy
-, wheel
-,
+, pythonOlder
+, setuptools
 }:
+
 buildPythonPackage rec {
   pname = "gekko";
   version = "1.1.1";
   pyproject = true;
 
+  disabled = pythonOlder "3.7";
+
   src = fetchPypi {
     inherit pname version;
     hash = "sha256-xc6NfPCvkEYjUG82QmFqDuu02QNwKfoS6DDpkdaMWJ8=";
   };
 
-  nativeBuildInputs = [
+  build-system = [
     setuptools
-    wheel
   ];
 
-  pythonImportsCheck = [ "gekko" ];
-
-  propagatedBuildInputs = [
+  dependencies = [
     numpy
   ];
 
+  # Module has no tests
+  doCHeck = false;
+
+  pythonImportsCheck = [ "gekko" ];
+
   meta = with lib; {
+    description = "Module for machine learning and optimization";
     homepage = "https://github.com/BYU-PRISM/GEKKO";
-    description = "A Python package for machine learning and optimization";
+    changelog = "https://github.com/BYU-PRISM/GEKKO/releases/tag/v${version}";
     license = licenses.mit;
     maintainers = with maintainers; [ ayes-web ];
   };