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