62 lines
1.2 KiB
Nix
62 lines
1.2 KiB
Nix
|
{
|
||
|
lib,
|
||
|
buildPythonPackage,
|
||
|
fetchFromGitHub,
|
||
|
niapy,
|
||
|
nltk,
|
||
|
numpy,
|
||
|
pandas,
|
||
|
plotly,
|
||
|
poetry-core,
|
||
|
pytestCheckHook,
|
||
|
pythonOlder,
|
||
|
scikit-learn,
|
||
|
tomli,
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "niaarm";
|
||
|
version = "0.3.12";
|
||
|
format = "pyproject";
|
||
|
|
||
|
disabled = pythonOlder "3.9";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "firefly-cpp";
|
||
|
repo = "NiaARM";
|
||
|
rev = "refs/tags/${version}";
|
||
|
hash = "sha256-rYFfLtPJgIdSjRIzDIQeHwoQm9NrI6nM3/BF7wAMr1Y=";
|
||
|
};
|
||
|
|
||
|
pythonRelaxDeps = [ "scikit-learn" ];
|
||
|
|
||
|
nativeBuildInputs = [ poetry-core ];
|
||
|
|
||
|
propagatedBuildInputs = [
|
||
|
niapy
|
||
|
nltk
|
||
|
numpy
|
||
|
pandas
|
||
|
plotly
|
||
|
scikit-learn
|
||
|
] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
|
||
|
|
||
|
disabledTests = [
|
||
|
# Test requires extra nltk data dependency
|
||
|
"test_text_mining"
|
||
|
];
|
||
|
|
||
|
nativeCheckInputs = [ pytestCheckHook ];
|
||
|
|
||
|
pythonImportsCheck = [ "niaarm" ];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Minimalistic framework for Numerical Association Rule Mining";
|
||
|
mainProgram = "niaarm";
|
||
|
homepage = "https://github.com/firefly-cpp/NiaARM";
|
||
|
changelog = "https://github.com/firefly-cpp/NiaARM/blob/${version}/CHANGELOG.md";
|
||
|
license = licenses.mit;
|
||
|
maintainers = with maintainers; [ firefly-cpp ];
|
||
|
};
|
||
|
}
|