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
, 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 ];
};