2022-11-04 12:27:35 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, niapy
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, poetry-core
|
|
|
|
, scikit-learn
|
|
|
|
, toml-adapt
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "niaaml";
|
|
|
|
version = "1.1.11";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lukapecnik";
|
|
|
|
repo = "NiaAML";
|
|
|
|
rev = version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-B87pI1EpZj1xECrgTmzN5S35Cy1nPowBRyu1IDb5zCE=";
|
2022-11-04 12:27:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-11-04 12:27:35 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"niaaml"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python automated machine learning framework";
|
|
|
|
homepage = "https://github.com/lukapecnik/NiaAML";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ firefly-cpp ];
|
|
|
|
};
|
|
|
|
}
|