forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python3Packages.beancount_payeeverif: init at 1.0.2
Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
- Loading branch information
1 parent
88831e8
commit 59ad6ec
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
pkgs/development/python-modules/beancount_payeeverif/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters