Files
nixpkgs/pkgs/development/python-modules/beancount-plugin-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

49 lines
940 B
Nix

{
lib,
beancount,
buildPythonPackage,
fetchFromGitHub,
pytest-bdd,
pytestCheckHook,
regex,
setuptools,
}:
buildPythonPackage rec {
pname = "beancount-plugin-utils";
version = "0.0.4";
pyproject = true;
src = fetchFromGitHub {
owner = "Akuukis";
repo = "beancount_plugin_utils";
rev = "v${version}";
hash = "sha256-oyfL2K/sS4zZ7cq1P36h0dTcW1m5GUyQ9+IyZGfpb2E=";
};
build-system = [ setuptools ];
dependencies = [ beancount ];
nativeCheckInputs = [
pytest-bdd
pytestCheckHook
regex
];
pytestFlags = [ "--fixtures" ];
enabledTestPaths = [
"tests/"
];
pythonImportsCheck = [ "beancount" ];
meta = {
homepage = "https://github.com/Akuukis/beancount_plugin_utils";
description = "Utils for beancount plugin writers - BeancountError, mark, metaset, etc";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ alapshin ];
};
}