8ea6bde88d
This is a post 3.10 removal cleanup.
75 lines
1.4 KiB
Nix
75 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
poetry-core,
|
|
|
|
# dependencies
|
|
niapy,
|
|
nltk,
|
|
numpy,
|
|
pandas,
|
|
plotly,
|
|
scikit-learn,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "niaarm";
|
|
# nixpkgs-update: no auto update
|
|
version = "0.13.4";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "firefly-cpp";
|
|
repo = "NiaARM";
|
|
tag = version;
|
|
hash = "sha256-524rJ5b9e0U1rqu1iCGMA3Tgnn9bO4biCC1FMoGNqms=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"numpy"
|
|
"plotly"
|
|
"scikit-learn"
|
|
];
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
niapy
|
|
nltk
|
|
numpy
|
|
pandas
|
|
plotly
|
|
scikit-learn
|
|
];
|
|
|
|
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
|
|
# Prevents 'Fatal Python error: Aborted' on darwin during checkPhase
|
|
MPLBACKEND = "Agg";
|
|
};
|
|
|
|
disabledTests = [
|
|
# Test requires extra nltk data dependency
|
|
"test_text_mining"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|