mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
49 lines
880 B
Nix
49 lines
880 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, matplotlib
|
|
, numpy
|
|
, openpyxl
|
|
, pandas
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "niapy";
|
|
version = "2.0.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "NiaOrg";
|
|
repo = "NiaPy";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-bZ9bONFntNx5tcm/gR/uPS5CqicJX281WsvSno8aVlY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
matplotlib
|
|
numpy
|
|
openpyxl
|
|
pandas
|
|
];
|
|
|
|
checkInputs = [
|
|
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 ];
|
|
};
|
|
}
|