6003bf4301
Diff: https://github.com/firefly-cpp/NiaARM/compare/refs/tags/0.4.1...refs/tags/0.4.2 Changelog: https://github.com/firefly-cpp/NiaARM/releases/tag/0.4.2
79 lines
1.5 KiB
Nix
79 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
poetry-core,
|
|
|
|
# dependencies
|
|
niapy,
|
|
nltk,
|
|
numpy,
|
|
pandas,
|
|
plotly,
|
|
scikit-learn,
|
|
pythonOlder,
|
|
tomli,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "niaarm";
|
|
# nixpkgs-update: no auto update
|
|
version = "0.4.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "firefly-cpp";
|
|
repo = "NiaARM";
|
|
tag = version;
|
|
hash = "sha256-WvVXL1a1DvgLF3upbGUi1+nH5aDBUNx5Bitlkb8lQkc=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"numpy"
|
|
"plotly"
|
|
"scikit-learn"
|
|
];
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
niapy
|
|
nltk
|
|
numpy
|
|
pandas
|
|
plotly
|
|
scikit-learn
|
|
] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
|
|
|
|
disabledTests =
|
|
[
|
|
# Test requires extra nltk data dependency
|
|
"test_text_mining"
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
# Fatal Python error: Aborted
|
|
# matplotlib/backend_bases.py", line 2654 in create_with_canvas
|
|
"test_hill_slopes"
|
|
"test_two_key_plot"
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "niaarm" ];
|
|
|
|
meta = {
|
|
description = "Minimalistic framework for Numerical Association Rule Mining";
|
|
mainProgram = "niaarm";
|
|
homepage = "https://github.com/firefly-cpp/NiaARM";
|
|
changelog = "https://github.com/firefly-cpp/NiaARM/releases/tag/${src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ firefly-cpp ];
|
|
};
|
|
}
|