2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitLab,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
unittestCheckHook,
|
|
|
|
hledger,
|
|
|
|
perl,
|
|
|
|
rich,
|
|
|
|
pandas,
|
|
|
|
scipy,
|
|
|
|
psutil,
|
|
|
|
matplotlib,
|
|
|
|
drawilleplot,
|
|
|
|
asteval,
|
2023-02-02 18:25:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hledger-utils";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.14.0";
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "nobodyinperson";
|
|
|
|
repo = "hledger-utils";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-Qu4nUcAGTACmLhwc7fkLxITOyFnUHv85qMhtViFumVs=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
rich
|
|
|
|
pandas
|
|
|
|
scipy
|
|
|
|
psutil
|
|
|
|
matplotlib
|
|
|
|
drawilleplot
|
|
|
|
asteval
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
checkInputs = [ unittestCheckHook ];
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
hledger
|
|
|
|
perl
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export PATH=$out/bin:$PATH
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Utilities extending hledger";
|
|
|
|
homepage = "https://gitlab.com/nobodyinperson/hledger-utils";
|
2024-06-05 15:53:02 +00:00
|
|
|
license = with licenses; [
|
|
|
|
cc0
|
|
|
|
cc-by-40
|
|
|
|
gpl3
|
|
|
|
];
|
2023-02-02 18:25:31 +00:00
|
|
|
maintainers = with maintainers; [ nobbz ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|