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