Unverified Commit e0546f44 authored by Iztok Fister Jr's avatar Iztok Fister Jr Committed by GitHub
Browse files

python310Packages.niaaml: init at 1.1.11 (#196752)



Co-authored-by: default avatarSandro <sandro.jaeckel@gmail.com>
parent b6c3da4f
Loading
Loading
Loading
Loading
+59 −0
Original line number Diff line number Diff line
{ 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;
    sha256 = "sha256-B87pI1EpZj1xECrgTmzN5S35Cy1nPowBRyu1IDb5zCE=";
  };

  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
  '';

  checkInputs = [
    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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -6111,6 +6111,8 @@ self: super: with self; {
    enablePython = true; # ... and its Python bindings
  })).python;

  niaaml = callPackage ../development/python-modules/niaaml { };

  niaarm = callPackage ../development/python-modules/niaarm { };

  niapy = callPackage ../development/python-modules/niapy { };