depot/third_party/nixpkgs/pkgs/development/python-modules/niaarm/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

56 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, niapy
, nltk
, pandas
, poetry-core
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "niaarm";
version = "0.3.3";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "firefly-cpp";
repo = "NiaARM";
rev = "refs/tags/${version}";
hash = "sha256-kWOJfADqtC8YdZUlifKeiaS2a2cgcsMgCf0IHJt4NKY=";
};
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 ];
};
}