mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-07 04:57:26 +03:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
niapy,
|
|
nltk,
|
|
numpy,
|
|
pandas,
|
|
poetry-core,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
tomli,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "niaarm";
|
|
version = "0.3.9";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "firefly-cpp";
|
|
repo = "NiaARM";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-J3126RSJYBCSyxoPsvsDgmx9E+9fP2h6avPiCHISL7c=";
|
|
};
|
|
|
|
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 = "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 ];
|
|
};
|
|
}
|