Something went wrong. Try again.
lol
Something went wrong. Try again.
1.3 kB · 71 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172{ lib, buildPythonPackage, fetchFromGitHub, loguru, niapy, numpy, pandas, poetry-core, pytestCheckHook, scikit-learn, toml-adapt, typer, typing-extensions, writableTmpDirAsHomeHook,}:
buildPythonPackage rec { pname = "niaaml"; version = "2.2.0"; pyproject = true;
src = fetchFromGitHub { owner = "firefly-cpp"; repo = "NiaAML"; tag = version; hash = "sha256-AUQhdJc2nSuggV6zNOMihVJIbHAQX6EXsnhn97Tp35A="; };
pythonRelaxDeps = [ "numpy" "pandas" "typer" ];
build-system = [ poetry-core toml-adapt ];
dependencies = [ loguru niapy numpy pandas scikit-learn typer typing-extensions ];
# 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 writableTmpDirAsHomeHook ];
pythonImportsCheck = [ "niaaml" ];
meta = { 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 = lib.licenses.mit; maintainers = with lib.maintainers; [ firefly-cpp ]; };}