From 5c5a360e0884a2de7fb33d0fc57705dd34b9400e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20Thom=C3=A9?= Date: Sat, 6 May 2023 17:55:42 +0200 Subject: [PATCH] python3Packages.yapsy: use pytest and enable darwin --- pkgs/development/python-modules/yapsy/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/yapsy/default.nix b/pkgs/development/python-modules/yapsy/default.nix index a58c14150a35..8a0e4211742e 100644 --- a/pkgs/development/python-modules/yapsy/default.nix +++ b/pkgs/development/python-modules/yapsy/default.nix @@ -2,6 +2,7 @@ , stdenv , buildPythonPackage , fetchPypi +, pytestCheckHook }: buildPythonPackage rec { @@ -14,11 +15,13 @@ buildPythonPackage rec { sha256 = "12rznbnswfw0w7qfbvmmffr9r317gl1rqg36nijwzsklkjgks4fq"; }; + nativeCheckInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "yapsy" ]; + meta = with lib; { homepage = "https://yapsy.sourceforge.net/"; description = "Yet another plugin system"; license = licenses.bsd0; - # tests fail and are not using pytest to easily disable them - broken = stdenv.isDarwin; }; }