python311Packages.beancount-docverif: refactor

This commit is contained in:
natsukium 2023-10-08 12:14:39 +09:00
parent 70a357a075
commit b0be1e86a1
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53

View File

@ -1,14 +1,13 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k
{ lib, buildPythonPackage, fetchPypi
, setuptools-scm
, beancount
, pytest, sh
, pytestCheckHook
}:
buildPythonPackage rec {
version = "1.0.1";
pname = "beancount-docverif";
disabled = !isPy3k;
pyproject = true;
src = fetchPypi {
pname = "beancount_docverif";
@ -25,14 +24,9 @@ buildPythonPackage rec {
];
nativeCheckInputs = [
pytest
sh
pytestCheckHook
];
checkPhase = ''
pytest
'';
meta = with lib; {
homepage = "https://github.com/siriobalmelli/beancount_docverif";
description = "Document verification plugin for Beancount";