From 33632479f8588671ec5e9e95def1d5b63a8621bc Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 21 Nov 2021 18:25:52 +0100 Subject: [PATCH] python3Packages.pkginfo: enable tests --- pkgs/development/python-modules/pkginfo/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pkginfo/default.nix b/pkgs/development/python-modules/pkginfo/default.nix index 19e8cddcb1ad..87f11d912345 100644 --- a/pkgs/development/python-modules/pkginfo/default.nix +++ b/pkgs/development/python-modules/pkginfo/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchPypi +, pytestCheckHook }: buildPythonPackage rec { @@ -13,7 +14,13 @@ buildPythonPackage rec { sha256 = "sha256-ZRdf+iyAciBnOkHDcVc6yaHqGxn/1e75FiePQoMZk08="; }; - doCheck = false; # I don't know why, but with doCheck = true it fails. + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "pkginfo" + ]; meta = with lib; { description = "Query metadatdata from sdists, bdists or installed packages";