Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 67 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{ lib, buildPythonPackage, fetchFromGitHub, loguru, niapy, numpy, pandas, poetry-core, pytestCheckHook, pythonOlder, scikit-learn, toml-adapt, typer,}:
buildPythonPackage rec { pname = "niaaml"; version = "2.1.2"; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub { owner = "firefly-cpp"; repo = "NiaAML"; tag = version; hash = "sha256-i5hjmvN9qJCGVDmRDBTiaNQn+1kZHr2iWNnD7GUimr4="; };
pythonRelaxDeps = [ "numpy" "pandas" ];
nativeBuildInputs = [ poetry-core toml-adapt ];
propagatedBuildInputs = [ 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/${version}"; license = licenses.mit; maintainers = with maintainers; [ firefly-cpp ]; };}