f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
49 lines
953 B
Nix
49 lines
953 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
matplotlib,
|
|
numpy,
|
|
openpyxl,
|
|
pandas,
|
|
poetry-core,
|
|
pytest7CheckHook,
|
|
pytest-xdist,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "niapy";
|
|
version = "2.3.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "NiaOrg";
|
|
repo = "NiaPy";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-cT5CU1r3LZ9ValJwRUA0PaISmF6kXAz40alXbWYogGA=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
matplotlib
|
|
numpy
|
|
openpyxl
|
|
pandas
|
|
];
|
|
|
|
nativeCheckInputs = [ pytest7CheckHook pytest-xdist ];
|
|
|
|
pythonImportsCheck = [ "niapy" ];
|
|
|
|
meta = with lib; {
|
|
description = "Micro framework for building nature-inspired algorithms";
|
|
homepage = "https://niapy.org/";
|
|
changelog = "https://github.com/NiaOrg/NiaPy/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|