From 9cdb9a69987984af967beae0c120c71f2c4bc1b4 Mon Sep 17 00:00:00 2001 From: Andrei Lapshin Date: Tue, 9 Jul 2024 19:59:35 +0200 Subject: [PATCH] python312Packages.beancount-plugin-utils: init at 0.0.4 --- .../beancount-plugin-utils/default.nix | 44 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 46 insertions(+) create mode 100644 pkgs/development/python-modules/beancount-plugin-utils/default.nix diff --git a/pkgs/development/python-modules/beancount-plugin-utils/default.nix b/pkgs/development/python-modules/beancount-plugin-utils/default.nix new file mode 100644 index 000000000000..01fb3178182c --- /dev/null +++ b/pkgs/development/python-modules/beancount-plugin-utils/default.nix @@ -0,0 +1,44 @@ +{ + 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 + ]; + + pytestFlagsArray = [ "--fixtures tests/" ]; + + pythonImportsCheck = [ "beancount" ]; + + meta = with lib; { + homepage = "https://github.com/Akuukis/beancount_plugin_utils"; + description = "Utils for beancount plugin writers - BeancountError, mark, metaset, etc"; + license = licenses.agpl3Only; + maintainers = with maintainers; [ alapshin ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e97f3474650c..88e9be70043a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1559,6 +1559,8 @@ self: super: with self; { beancount-docverif = callPackage ../development/python-modules/beancount-docverif { }; + beancount-plugin-utils = callPackage ../development/python-modules/beancount-plugin-utils { }; + beanhub-cli = callPackage ../development/python-modules/beanhub-cli { }; beanhub-extract = callPackage ../development/python-modules/beanhub-extract { };