1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
50 lines
1.4 KiB
Nix
50 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
beancount,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pytestCheckHook,
|
|
regex,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "beancount-docverif";
|
|
version = "1.0.1";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "beancount_docverif";
|
|
inherit version;
|
|
hash = "sha256-CFBv1FZP5JO+1MPnD86ttrO42zZlvE157zqig7s4HOg=";
|
|
};
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
dependencies = [ beancount ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
regex
|
|
];
|
|
|
|
pythonImportsCheck = [ "beancount_docverif" ];
|
|
|
|
meta = {
|
|
description = "Document verification plugin for Beancount";
|
|
homepage = "https://github.com/siriobalmelli/beancount_docverif";
|
|
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.
|
|
- Explicitly declare the name of a document accompanying a transaction.
|
|
- 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 = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ siriobalmelli ];
|
|
};
|
|
}
|