depot/third_party/nixpkgs/pkgs/development/python-modules/hledger-utils/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

68 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.12.1";
format = "pyproject";
src = fetchFromGitLab {
owner = "nobodyinperson";
repo = "hledger-utils";
rev = "refs/tags/v${version}";
hash = "sha256-uAFqBNRET3RaWDTyV53onrBs1fjPR4b5rAvg5lweUN0=";
};
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;
};
}