python310Packages.niaclass: init at 0.1.3 (#214734)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
eb251ec0a9
commit
00ae7d13b8
60
pkgs/development/python-modules/niaclass/default.nix
Normal file
60
pkgs/development/python-modules/niaclass/default.nix
Normal file
@ -0,0 +1,60 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, niapy
|
||||
, numpy
|
||||
, pandas
|
||||
, poetry-core
|
||||
, scikit-learn
|
||||
, toml-adapt
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "niaclass";
|
||||
version = "0.1.3";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lukapecnik";
|
||||
repo = "NiaClass";
|
||||
rev = version;
|
||||
sha256 = "sha256-BDGDcIlunnaH3J9sEuDrwWsBR4Wjcy6Kxpxy9Dr6BlM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
toml-adapt
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
niapy
|
||||
numpy
|
||||
pandas
|
||||
scikit-learn
|
||||
];
|
||||
|
||||
# create scikit-learn dep version consistent
|
||||
preBuild = ''
|
||||
toml-adapt -path pyproject.toml -a change -dep scikit-learn -ver X
|
||||
'';
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"niaclass"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A framework for solving classification tasks using Nature-inspired algorithms";
|
||||
homepage = "https://github.com/lukapecnik/NiaClass";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ firefly-cpp ];
|
||||
};
|
||||
}
|
||||
|
@ -6513,6 +6513,8 @@ self: super: with self; {
|
||||
|
||||
niaarm = callPackage ../development/python-modules/niaarm { };
|
||||
|
||||
niaclass = callPackage ../development/python-modules/niaclass { };
|
||||
|
||||
niapy = callPackage ../development/python-modules/niapy { };
|
||||
|
||||
nibabel = callPackage ../development/python-modules/nibabel { };
|
||||
|
Loading…
Reference in New Issue
Block a user