From 3ff3aaa444376ee047a95a6d29fff841988276b7 Mon Sep 17 00:00:00 2001 From: polyfloyd Date: Sun, 6 Jul 2025 16:30:13 +0200 Subject: [PATCH] python3Packages.beancount-periodic: init at 0.2.1 --- .../beancount-periodic/default.nix | 46 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/python-modules/beancount-periodic/default.nix diff --git a/pkgs/development/python-modules/beancount-periodic/default.nix b/pkgs/development/python-modules/beancount-periodic/default.nix new file mode 100644 index 000000000000..bf64a24996f3 --- /dev/null +++ b/pkgs/development/python-modules/beancount-periodic/default.nix @@ -0,0 +1,46 @@ +{ + buildPythonPackage, + fetchFromGitHub, + lib, + unittestCheckHook, + setuptools, + beancount, + beangulp, + python-dateutil, +}: + +buildPythonPackage rec { + pname = "beancount-periodic"; + version = "0.2.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "dallaslu"; + repo = "beancount-periodic"; + tag = "v${version}"; + hash = "sha256-XuBDKG/iOS0gyfiwEEPjIckAbnfOKHjYwXW4CmUy8eA="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + beancount + beangulp + python-dateutil + ]; + + nativeCheckInputs = [ unittestCheckHook ]; + unittestFlags = [ + "-v" + "tests" + ]; + + pythonImportsCheck = [ "beancount_periodic" ]; + + meta = { + description = "Beancount plugin to generate periodic transactions"; + homepage = "https://github.com/dallaslu/beancount-periodic"; + license = with lib.licenses; [ unlicense ]; + maintainers = with lib.maintainers; [ polyfloyd ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index afb3dbb3fda4..77931056733b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1769,6 +1769,8 @@ self: super: with self; { beancount-parser = callPackage ../development/python-modules/beancount-parser { }; + beancount-periodic = callPackage ../development/python-modules/beancount-periodic { }; + beancount-plugin-utils = callPackage ../development/python-modules/beancount-plugin-utils { }; beancount_2 = callPackage ../development/python-modules/beancount/2.nix { };