Files
nixpkgs/pkgs/development/python-modules/niapy/default.nix
Ihar Hrachyshka cca3b04b44 treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 19:01:23 +01:00

54 lines
941 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
matplotlib,
numpy,
openpyxl,
pandas,
poetry-core,
pytestCheckHook,
pytest-xdist,
}:
buildPythonPackage rec {
pname = "niapy";
version = "2.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "NiaOrg";
repo = "NiaPy";
tag = "v${version}";
hash = "sha256-o/JHFPsYMHxSkUMfRbR3SJawbzTsoh6ae0pyxLd1bAs=";
};
build-system = [ poetry-core ];
dependencies = [
matplotlib
numpy
openpyxl
pandas
];
pythonRelaxDeps = [
"numpy"
];
nativeCheckInputs = [
pytestCheckHook
pytest-xdist
];
pythonImportsCheck = [ "niapy" ];
meta = {
description = "Micro framework for building nature-inspired algorithms";
homepage = "https://niapy.org/";
changelog = "https://github.com/NiaOrg/NiaPy/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}