1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitLab, 5 setuptools, 6 setuptools-scm, 7 unittestCheckHook, 8 hledger, 9 perl, 10 rich, 11 pandas, 12 scipy, 13 psutil, 14 matplotlib, 15 drawilleplot, 16 asteval, 17}: 18 19buildPythonPackage rec { 20 pname = "hledger-utils"; 21 version = "1.14.0"; 22 23 format = "pyproject"; 24 25 src = fetchFromGitLab { 26 owner = "nobodyinperson"; 27 repo = "hledger-utils"; 28 rev = "refs/tags/v${version}"; 29 hash = "sha256-Qu4nUcAGTACmLhwc7fkLxITOyFnUHv85qMhtViFumVs="; 30 }; 31 32 nativeBuildInputs = [ 33 setuptools 34 setuptools-scm 35 ]; 36 37 propagatedBuildInputs = [ 38 rich 39 pandas 40 scipy 41 psutil 42 matplotlib 43 drawilleplot 44 asteval 45 ]; 46 47 checkInputs = [ unittestCheckHook ]; 48 49 nativeCheckInputs = [ 50 hledger 51 perl 52 ]; 53 54 preCheck = '' 55 export PATH=$out/bin:$PATH 56 ''; 57 58 meta = with lib; { 59 description = "Utilities extending hledger"; 60 homepage = "https://gitlab.com/nobodyinperson/hledger-utils"; 61 license = with licenses; [ 62 cc0 63 cc-by-40 64 gpl3 65 ]; 66 maintainers = with maintainers; [ nobbz ]; 67 platforms = platforms.all; 68 }; 69}