9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
56 lines
1 KiB
Nix
56 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, niapy
|
|
, nltk
|
|
, pandas
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "niaarm";
|
|
version = "0.3.2";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "firefly-cpp";
|
|
repo = "NiaARM";
|
|
rev = version;
|
|
hash = "sha256-9/VGr/Ci9f8SiuofX1vWVF/E4eoeQ0ESj9raQk53Zp4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
niapy
|
|
nltk
|
|
pandas
|
|
];
|
|
|
|
disabledTests = [
|
|
# Test requires extra nltk data dependency
|
|
"test_text_mining"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"niaarm"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A minimalistic framework for Numerical Association Rule Mining";
|
|
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 ];
|
|
};
|
|
}
|