Skip to content

Commit

Permalink
python3Packages.beancount_payeeverif: init at 1.0.2
Browse files Browse the repository at this point in the history
Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
  • Loading branch information
siriobalmelli committed Oct 21, 2024
1 parent 88831e8 commit 59ad6ec
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
56 changes: 56 additions & 0 deletions pkgs/development/python-modules/beancount_payeeverif/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k
, setuptools-scm
, beancount
, pytestCheckHook, sh
}:

buildPythonPackage rec {
version = "1.0.2";
pname = "beancount_payeeverif";

disabled = !isPy3k;

src = fetchPypi {
inherit pname version;
sha256 = "03gf07797nbx4f6khapmkjz1mgbhsiqv0pmrzkicd2qyaba65mwk";
};

nativeBuildInputs = [
setuptools-scm
];

propagatedBuildInputs = [
beancount
];

checkInputs = [
pytestCheckHook
sh
];

meta = with lib; {
homepage = "https://github.com/siriobalmelli/beancount_payeeverif";
description = "Payee verification plugin for Beancount";
longDescription = ''
beancount_payeeverif is the "payee verification" plugin for beancount,
fulfilling the following functions:
Every transaction has a non-NULL payee field:
; this will throw an error
2020-06-01 * "" "fix faucet leak"
Expenses:General
Assets:Bank -150 bean
; this will pass validation
2020-06-02 * "plumber" "fix faucet leak"
Expenses:General
Assets:Bank -150 bean
*TODO: coming soon* Transactions touching certain accounts
must match an allowed_payees regex.
'';
license = licenses.mit;
maintainers = with maintainers; [ siriobalmelli ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1541,6 +1541,8 @@ self: super: with self; {

beanhub-import = callPackage ../development/python-modules/beanhub-import { };

beancount_payeeverif = callPackage ../development/python-modules/beancount_payeeverif { };

beanstalkc = callPackage ../development/python-modules/beanstalkc { };

beartype = callPackage ../development/python-modules/beartype { };
Expand Down

0 comments on commit 59ad6ec

Please sign in to comment.