From b0be1e86a13ff3b7939c2e11f355b2459b3b8f52 Mon Sep 17 00:00:00 2001 From: natsukium Date: Sun, 8 Oct 2023 12:14:39 +0900 Subject: [PATCH] python311Packages.beancount-docverif: refactor --- .../python-modules/beancount-docverif/default.nix | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/beancount-docverif/default.nix b/pkgs/development/python-modules/beancount-docverif/default.nix index 34c0460baed84..d614b2f12d4f0 100644 --- a/pkgs/development/python-modules/beancount-docverif/default.nix +++ b/pkgs/development/python-modules/beancount-docverif/default.nix @@ -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";