depot/third_party/nixpkgs/pkgs/development/python-modules/niapy/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

48 lines
922 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
matplotlib,
numpy,
openpyxl,
pandas,
poetry-core,
pytestCheckHook,
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 = [ pytestCheckHook ];
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 ];
};
}