Merge pull request #282277 from fabaff/niaclass-fix

python311Packages.nia{aml,class,net}: refactor
This commit is contained in:
Fabian Affolter
2024-01-20 11:58:49 +01:00
committed by GitHub
3 changed files with 33 additions and 17 deletions
@@ -5,28 +5,34 @@
, numpy
, pandas
, poetry-core
, scikit-learn
, toml-adapt
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, scikit-learn
, toml-adapt
}:
buildPythonPackage rec {
pname = "niaaml";
version = "1.1.12";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "lukapecnik";
repo = "NiaAML";
rev = version;
rev = "refs/tags/${version}";
hash = "sha256-GAUXEkUOD04DQtRG/RAeeeLmenBd25h18Lmrxbm4X3A=";
};
pythonRelaxDeps = [
"pandas"
];
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
toml-adapt
];
@@ -54,6 +60,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python automated machine learning framework";
homepage = "https://github.com/lukapecnik/NiaAML";
changelog = "https://github.com/lukapecnik/NiaAML/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ firefly-cpp ];
};
@@ -5,28 +5,34 @@
, numpy
, pandas
, poetry-core
, scikit-learn
, toml-adapt
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, scikit-learn
, toml-adapt
}:
buildPythonPackage rec {
pname = "niaclass";
version = "0.1.4";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "lukapecnik";
repo = "NiaClass";
rev = "refs/tags/${version}";
sha256 = "sha256-md1e/cOIOQKoB760E5hjzjCsC5tS1CzgqAPTeVtrmuo=";
hash = "sha256-md1e/cOIOQKoB760E5hjzjCsC5tS1CzgqAPTeVtrmuo=";
};
pythonRelaxDeps = [
"pandas"
];
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
toml-adapt
];
@@ -42,7 +48,7 @@ buildPythonPackage rec {
toml-adapt -path pyproject.toml -a change -dep scikit-learn -ver X
'';
checkInputs = [
nativeCheckInputs = [
pytestCheckHook
];
@@ -53,6 +59,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "A framework for solving classification tasks using Nature-inspired algorithms";
homepage = "https://github.com/lukapecnik/NiaClass";
changelog = "https://github.com/lukapecnik/NiaClass/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ firefly-cpp ];
};
@@ -9,26 +9,27 @@
, pythonOlder
, scikit-learn
, toml-adapt
, tomli
, torch
}:
buildPythonPackage rec {
pname = "nianet";
version = "1.1.4";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "SasoPavlic";
repo = pname;
rev = "version_${version}";
repo = "nianet";
rev = "refs/tags/version_${version}";
sha256 = "sha256-FZipl6Z9AfiL6WH0kvUn8bVxt8JLdDVlmTSqnyxe0nY=";
};
nativeBuildInputs = [
toml-adapt
poetry-core
toml-adapt
];
propagatedBuildInputs = [
@@ -44,8 +45,9 @@ buildPythonPackage rec {
toml-adapt -path pyproject.toml -a change -dep torch -ver X
'';
checkInputs = [
nativeCheckInputs = [
pytestCheckHook
tomli
];
pythonImportsCheck = [