Skip to content

Commit

Permalink
Merge pull request NixOS#179453 from fabaff/niapy
Browse files Browse the repository at this point in the history
python310Packages.niapy: init at 2.0.2
  • Loading branch information
fabaff authored Jun 29, 2022
2 parents 4d451e9 + ae4623b commit 149d499
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
47 changes: 47 additions & 0 deletions pkgs/development/python-modules/niapy/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, matplotlib
, numpy
, openpyxl
, pandas
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
pname = "niapy";
version = "2.0.2";
format = "setuptools";

disabled = pythonOlder "3.7";

src = fetchFromGitHub {
owner = "NiaOrg";
repo = "NiaPy";
rev = version;
hash = "sha256-b/0TEO27fPuoPzkNBCwgUqBG+8htOR2ipFikpqjYdnM=";
};

propagatedBuildInputs = [
matplotlib
numpy
openpyxl
pandas
];

checkInputs = [
pytestCheckHook
];

pythonImportsCheck = [
"niapy"
];

meta = with lib; {
description = "Micro framework for building nature-inspired algorithms";
homepage = "https://niapy.org/";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5809,6 +5809,8 @@ in {
enablePython = true; # ... and its Python bindings
})).python;

niapy = callPackage ../development/python-modules/niapy { };

nibabel = callPackage ../development/python-modules/nibabel { };

nidaqmx = callPackage ../development/python-modules/nidaqmx { };
Expand Down

0 comments on commit 149d499

Please sign in to comment.