Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
66 lines
1.2 KiB
Nix
66 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
loguru,
|
|
niapy,
|
|
numpy,
|
|
pandas,
|
|
poetry-core,
|
|
pytestCheckHook,
|
|
scikit-learn,
|
|
toml-adapt,
|
|
typer,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "niaaml";
|
|
version = "2.1.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "firefly-cpp";
|
|
repo = "NiaAML";
|
|
tag = version;
|
|
hash = "sha256-i5hjmvN9qJCGVDmRDBTiaNQn+1kZHr2iWNnD7GUimr4=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"numpy"
|
|
"pandas"
|
|
"typer"
|
|
];
|
|
|
|
build-system = [
|
|
poetry-core
|
|
toml-adapt
|
|
];
|
|
|
|
dependencies = [
|
|
loguru
|
|
niapy
|
|
numpy
|
|
pandas
|
|
scikit-learn
|
|
typer
|
|
];
|
|
|
|
# create scikit-learn and niapy deps version consistent
|
|
preBuild = ''
|
|
toml-adapt -path pyproject.toml -a change -dep scikit-learn -ver X
|
|
toml-adapt -path pyproject.toml -a change -dep niapy -ver X
|
|
'';
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "niaaml" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python automated machine learning framework";
|
|
homepage = "https://github.com/firefly-cpp/NiaAML";
|
|
changelog = "https://github.com/firefly-cpp/NiaAML/releases/tag/${src.tag}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ firefly-cpp ];
|
|
};
|
|
}
|