python312Packages.gekko: refactor

This commit is contained in:
Fabian Affolter 2024-04-12 10:37:02 +02:00
parent 827ce2d1f7
commit a726656b84

View File

@ -1,35 +1,40 @@
{ fetchPypi { lib
, lib
, buildPythonPackage , buildPythonPackage
, setuptools , fetchPypi
, numpy , numpy
, wheel , pythonOlder
, , setuptools
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "gekko"; pname = "gekko";
version = "1.1.1"; version = "1.1.1";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-xc6NfPCvkEYjUG82QmFqDuu02QNwKfoS6DDpkdaMWJ8="; hash = "sha256-xc6NfPCvkEYjUG82QmFqDuu02QNwKfoS6DDpkdaMWJ8=";
}; };
nativeBuildInputs = [ build-system = [
setuptools setuptools
wheel
]; ];
pythonImportsCheck = [ "gekko" ]; dependencies = [
propagatedBuildInputs = [
numpy numpy
]; ];
# Module has no tests
doCHeck = false;
pythonImportsCheck = [ "gekko" ];
meta = with lib; { meta = with lib; {
description = "Module for machine learning and optimization";
homepage = "https://github.com/BYU-PRISM/GEKKO"; 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; license = licenses.mit;
maintainers = with maintainers; [ ayes-web ]; maintainers = with maintainers; [ ayes-web ];
}; };