diff --git a/pkgs/development/python-modules/openhomedevice/default.nix b/pkgs/development/python-modules/openhomedevice/default.nix index 54999ffe1593..e512d0494217 100644 --- a/pkgs/development/python-modules/openhomedevice/default.nix +++ b/pkgs/development/python-modules/openhomedevice/default.nix @@ -1,8 +1,10 @@ { lib +, aioresponses , async-upnp-client , buildPythonPackage , fetchFromGitHub , lxml +, pytestCheckHook , pythonOlder }: @@ -25,14 +27,19 @@ buildPythonPackage rec { lxml ]; - # Tests are currently outdated - # https://github.com/bazwilliams/openhomedevice/issues/20 - doCheck = false; + nativeCheckInputs = [ + aioresponses + pytestCheckHook + ]; pythonImportsCheck = [ "openhomedevice" ]; + pytestFlagsArray = [ + "tests/*.py" + ]; + meta = with lib; { description = "Python module to access Linn Ds and Openhome devices"; homepage = "https://github.com/bazwilliams/openhomedevice";