Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at lanzaboote 56 lines 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, niapy 5, nltk 6, pandas 7, poetry-core 8, pytestCheckHook 9, pythonOlder 10}: 11 12buildPythonPackage rec { 13 pname = "niaarm"; 14 version = "0.3.3"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "firefly-cpp"; 21 repo = "NiaARM"; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-kWOJfADqtC8YdZUlifKeiaS2a2cgcsMgCf0IHJt4NKY="; 24 }; 25 26 nativeBuildInputs = [ 27 poetry-core 28 ]; 29 30 propagatedBuildInputs = [ 31 niapy 32 nltk 33 pandas 34 ]; 35 36 disabledTests = [ 37 # Test requires extra nltk data dependency 38 "test_text_mining" 39 ]; 40 41 nativeCheckInputs = [ 42 pytestCheckHook 43 ]; 44 45 pythonImportsCheck = [ 46 "niaarm" 47 ]; 48 49 meta = with lib; { 50 description = "A minimalistic framework for Numerical Association Rule Mining"; 51 homepage = "https://github.com/firefly-cpp/NiaARM"; 52 changelog = "https://github.com/firefly-cpp/NiaARM/blob/${version}/CHANGELOG.md"; 53 license = licenses.mit; 54 maintainers = with maintainers; [ firefly-cpp ]; 55 }; 56}