depot/third_party/nixpkgs/pkgs/development/python-modules/niaarm/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

61 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, niapy
, nltk
, numpy
, pandas
, poetry-core
, pytestCheckHook
, pythonOlder
, tomli
}:
buildPythonPackage rec {
pname = "niaarm";
version = "0.3.5";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "firefly-cpp";
repo = "NiaARM";
rev = "refs/tags/${version}";
hash = "sha256-E5G1uVDSErqwxTBNQ7qselemW9A3W8sr3ExPEh+1les=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
niapy
nltk
numpy
pandas
] ++ lib.optionals (pythonOlder "3.11") [
tomli
];
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 ];
};
}