From 6ba4962a152132e41e8ae13c0e334f8a799ca5a8 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 20 Nov 2021 13:13:49 +0100 Subject: [PATCH] python3Packages.nessclient: enable tests --- .../python-modules/nessclient/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/nessclient/default.nix b/pkgs/development/python-modules/nessclient/default.nix index c21ef192bec9..d91a80eb9d0f 100644 --- a/pkgs/development/python-modules/nessclient/default.nix +++ b/pkgs/development/python-modules/nessclient/default.nix @@ -1,9 +1,12 @@ { lib +, asynctest , buildPythonPackage , click , fetchFromGitHub , justbackoff , pythonOlder +, pytest-asyncio +, pytestCheckHook }: buildPythonPackage rec { @@ -25,15 +28,18 @@ buildPythonPackage rec { click ]; - # Tests are not shipped - doCheck = false; + checkInputs = [ + asynctest + pytest-asyncio + pytestCheckHook + ]; pythonImportsCheck = [ "nessclient" ]; meta = with lib; { - description = "Python implementation/abstraction of the Ness D8x / D16x Serial Interface ASCII protocol"; + description = "Python implementation/abstraction of the Ness D8x/D16x Serial Interface ASCII protocol"; homepage = "https://github.com/nickw444/nessclient"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ];