mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
fd4919bca0
python311Packages.niaaml: change upstream
60 lines
1.2 KiB
Nix
60 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
niapy,
|
|
numpy,
|
|
pandas,
|
|
poetry-core,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
scikit-learn,
|
|
toml-adapt,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "niaaml";
|
|
version = "2.1.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "firefly-cpp";
|
|
repo = "NiaAML";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-VMZLEirE01Q9eyQIhV18PepGWmBcxLIwNeuVf7EuSWE=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "pandas" ];
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
toml-adapt
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
niapy
|
|
numpy
|
|
pandas
|
|
scikit-learn
|
|
];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|