From 40d90ca36b51c2609a24595583cd9ad9a07119cb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 3 Feb 2021 08:50:06 +0100 Subject: [PATCH] python3Packages.androidtv: switch to pytestCheckHook --- .../python-modules/androidtv/default.nix | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/androidtv/default.nix b/pkgs/development/python-modules/androidtv/default.nix index 3908aa26f84..ec00c31147b 100644 --- a/pkgs/development/python-modules/androidtv/default.nix +++ b/pkgs/development/python-modules/androidtv/default.nix @@ -1,5 +1,14 @@ -{ aiofiles, adb-shell, buildPythonPackage, fetchFromGitHub, isPy3k, lib, mock -, pure-python-adb, python }: +{ lib +, adb-shell +, aiofiles +, buildPythonPackage +, fetchFromGitHub +, isPy3k +, mock +, pure-python-adb +, pytestCheckHook +, python +}: buildPythonPackage rec { pname = "androidtv"; @@ -16,14 +25,16 @@ buildPythonPackage rec { propagatedBuildInputs = [ adb-shell pure-python-adb ] ++ lib.optionals (isPy3k) [ aiofiles ]; - checkInputs = [ mock ]; - checkPhase = '' - ${python.interpreter} -m unittest discover -s tests -t . - ''; + checkInputs = [ + mock + pytestCheckHook + ]; + + pythonImportsCheck = [ "androidtv" ]; meta = with lib; { description = - "Communicate with an Android TV or Fire TV device via ADB over a network."; + "Communicate with an Android TV or Fire TV device via ADB over a network"; homepage = "https://github.com/JeffLIrion/python-androidtv/"; license = licenses.mit; maintainers = with maintainers; [ jamiemagee ];