python312Packages.niaarm: 0.3.13 -> 0.4.1 (#387566)
This commit is contained in:
@@ -1,31 +1,36 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
|
||||
# build-system
|
||||
poetry-core,
|
||||
|
||||
# dependencies
|
||||
niapy,
|
||||
nltk,
|
||||
numpy,
|
||||
pandas,
|
||||
plotly,
|
||||
poetry-core,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
scikit-learn,
|
||||
pythonOlder,
|
||||
tomli,
|
||||
|
||||
# tests
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "niaarm";
|
||||
version = "0.3.13";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
version = "0.4.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "firefly-cpp";
|
||||
repo = "NiaARM";
|
||||
tag = version;
|
||||
hash = "sha256-nDgGX5KbthOBXX5jg99fGT28ZuBx0Hxb+aHak3Uvjoc=";
|
||||
hash = "sha256-/lEW6SUV+CRovYmLVWiolYDHYmMJSJHnYNo9+lBc9nY=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = [
|
||||
@@ -33,9 +38,9 @@ buildPythonPackage rec {
|
||||
"scikit-learn"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ poetry-core ];
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
niapy
|
||||
nltk
|
||||
numpy
|
||||
@@ -44,21 +49,28 @@ buildPythonPackage rec {
|
||||
scikit-learn
|
||||
] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
|
||||
|
||||
disabledTests = [
|
||||
# Test requires extra nltk data dependency
|
||||
"test_text_mining"
|
||||
];
|
||||
disabledTests =
|
||||
[
|
||||
# Test requires extra nltk data dependency
|
||||
"test_text_mining"
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
# Fatal Python error: Aborted
|
||||
# matplotlib/backend_bases.py", line 2654 in create_with_canvas
|
||||
"test_hill_slopes"
|
||||
"test_two_key_plot"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "niaarm" ];
|
||||
|
||||
meta = with lib; {
|
||||
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/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ firefly-cpp ];
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ firefly-cpp ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user