From 2192b2abda68059018b7a4db2750861e2ab217fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 7 Mar 2021 17:29:40 +0100 Subject: [PATCH] pythonPackages.defusedxml: execute tests --- pkgs/development/python-modules/defusedxml/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/defusedxml/default.nix b/pkgs/development/python-modules/defusedxml/default.nix index 3abdd0fb792e..797fee025be4 100644 --- a/pkgs/development/python-modules/defusedxml/default.nix +++ b/pkgs/development/python-modules/defusedxml/default.nix @@ -2,6 +2,7 @@ , buildPythonPackage , fetchPypi , pythonOlder +, python }: buildPythonPackage rec { @@ -14,6 +15,10 @@ buildPythonPackage rec { sha256 = "183fz8xwclhkirwpvpldyypn47r8lgzfz2mk9jgyg7b37jg5vcc6"; }; + checkPhase = '' + ${python.interpreter} tests.py + ''; + pythonImportsCheck = [ "defusedxml" ]; meta = with lib; {