From c1b8202008fc5f1a4e4024e27c39100b043543dd Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 3 Mar 2023 04:14:11 +0100 Subject: [PATCH] python310Packages.decorator: Enable tests --- .../python-modules/decorator/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkgs/development/python-modules/decorator/default.nix b/pkgs/development/python-modules/decorator/default.nix index e422b63eb772..a918f7e941d2 100644 --- a/pkgs/development/python-modules/decorator/default.nix +++ b/pkgs/development/python-modules/decorator/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchPypi +, pytestCheckHook }: buildPythonPackage rec { @@ -13,6 +14,18 @@ buildPythonPackage rec { hash = "sha256-Y3mWIRA2tjhe+RQ15PriKYlHL51XH6uoknuoJTrLwzA="; }; + pythonImportsCheck = [ + "decorator" + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pytestFlagsArray = [ + "src/tests/test.py" + ]; + meta = with lib; { homepage = "https://github.com/micheles/decorator"; description = "Better living through Python with decorators";