python310Packages.decorator: Enable tests

This commit is contained in:
Martin Weinelt
2023-03-03 23:59:30 +01:00
parent a91f674254
commit c1b8202008
@@ -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";