2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, matplotlib
|
|
|
|
, numpy
|
|
|
|
, openpyxl
|
|
|
|
, pandas
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "niapy";
|
2022-11-27 09:42:12 +00:00
|
|
|
version = "2.0.4";
|
2022-07-14 12:49:19 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NiaOrg";
|
|
|
|
repo = "NiaPy";
|
2022-09-09 14:08:57 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-11-27 09:42:12 +00:00
|
|
|
hash = "sha256-bZ9bONFntNx5tcm/gR/uPS5CqicJX281WsvSno8aVlY=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
matplotlib
|
|
|
|
numpy
|
|
|
|
openpyxl
|
|
|
|
pandas
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-07-14 12:49:19 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"niapy"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Micro framework for building nature-inspired algorithms";
|
|
|
|
homepage = "https://niapy.org/";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/NiaOrg/NiaPy/releases/tag/${version}";
|
2022-07-14 12:49:19 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|