mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-12 07:54:50 +00:00
00ae7d13b8
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{ 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 ];
|
|
};
|
|
}
|
|
|