depot/third_party/nixpkgs/pkgs/development/python-modules/niaarm/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

61 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 ];
};
}