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