2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
matplotlib,
|
|
|
|
numpy,
|
|
|
|
openpyxl,
|
|
|
|
pandas,
|
|
|
|
poetry-core,
|
2024-07-27 06:49:29 +00:00
|
|
|
pytest7CheckHook,
|
|
|
|
pytest-xdist,
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonOlder,
|
2022-07-14 12:49:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "niapy";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "2.3.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NiaOrg";
|
|
|
|
repo = "NiaPy";
|
2024-06-05 15:53:02 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-cT5CU1r3LZ9ValJwRUA0PaISmF6kXAz40alXbWYogGA=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ poetry-core ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
dependencies = [
|
2022-07-14 12:49:19 +00:00
|
|
|
matplotlib
|
|
|
|
numpy
|
|
|
|
openpyxl
|
|
|
|
pandas
|
|
|
|
];
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
nativeCheckInputs = [ pytest7CheckHook pytest-xdist ];
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "niapy" ];
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|