nixpkgs/pkgs/development/python-modules/hledger-utils/default.nix
Martin Weinelt 8056f9250c
treewide: remove redundant SETUPTOOLS_SCM_PRETEND_VERSION usage
The setuptools-scm packages gained a setup hook, that sets it to the
derivation version automatically, so setting it to that manually has
become redundant.

This also affects downstream consumers of setuptools-scm, like hatch-vcs
or flit-scm.
2023-12-20 20:16:39 +01:00

67 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 = 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;
};
}