2023-10-19 13:55:26 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2021-05-03 20:48:10 +00:00
|
|
|
, setuptools-scm
|
2020-07-18 16:06:22 +00:00
|
|
|
, beancount
|
2023-10-19 13:55:26 +00:00
|
|
|
, pytestCheckHook
|
2020-07-18 16:06:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "1.0.1";
|
2023-10-19 13:55:26 +00:00
|
|
|
pname = "beancount-docverif";
|
|
|
|
pyproject = true;
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-10-19 13:55:26 +00:00
|
|
|
pname = "beancount_docverif";
|
|
|
|
inherit version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-CFBv1FZP5JO+1MPnD86ttrO42zZlvE157zqig7s4HOg=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
beancount
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-10-19 13:55:26 +00:00
|
|
|
pytestCheckHook
|
2020-07-18 16:06:22 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/siriobalmelli/beancount_docverif";
|
|
|
|
description = "Document verification plugin for Beancount";
|
|
|
|
longDescription = ''
|
|
|
|
Docverif is the "Document Verification" plugin for beancount, fulfilling the following functions:
|
|
|
|
|
|
|
|
- Require that every transaction touching an account have an accompanying document on disk.
|
2022-12-28 21:21:41 +00:00
|
|
|
- Explicitly declare the name of a document accompanying a transaction.
|
2020-07-18 16:06:22 +00:00
|
|
|
- Explicitly declare that a transaction is expected not to have an accompanying document.
|
|
|
|
- Look for an "implicit" PDF document matching transaction data.
|
|
|
|
- Associate (and require) a document with any type of entry, including open entries themselves.
|
|
|
|
- Guarantee integrity: verify that every document declared does in fact exist on disk.
|
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ siriobalmelli ];
|
|
|
|
};
|
|
|
|
}
|