2022-09-22 12:36:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, niapy
|
|
|
|
, nltk
|
|
|
|
, pandas
|
|
|
|
, poetry-core
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-01-20 10:41:00 +00:00
|
|
|
pname = "niaarm";
|
2023-02-22 10:55:15 +00:00
|
|
|
version = "0.3.1";
|
2022-09-22 12:36:57 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2022-09-22 12:36:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "firefly-cpp";
|
2023-01-20 10:41:00 +00:00
|
|
|
repo = "NiaARM";
|
2022-09-22 12:36:57 +00:00
|
|
|
rev = version;
|
2023-02-22 10:55:15 +00:00
|
|
|
hash = "sha256-5XOE3c7amvhw1KrX1hcmTxneYNvAuiHz+OZLb/yhB+I=";
|
2022-09-22 12:36:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
niapy
|
|
|
|
nltk
|
|
|
|
pandas
|
|
|
|
];
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Test requires extra nltk data dependency
|
|
|
|
"test_text_mining"
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-09-22 12:36:57 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"niaarm"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A minimalistic framework for Numerical Association Rule Mining";
|
|
|
|
homepage = "https://github.com/firefly-cpp/NiaARM";
|
2023-01-20 10:41:00 +00:00
|
|
|
changelog = "https://github.com/firefly-cpp/NiaARM/blob/${version}/CHANGELOG.md";
|
2022-09-22 12:36:57 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ firefly-cpp ];
|
|
|
|
};
|
|
|
|
}
|