Files
nixpkgs/pkgs/development/python-modules/hledger-utils/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

70 lines
1.1 KiB
Nix

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