about summary refs log tree commit diff
path: root/pkgs/development/python-modules/adb-shell
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-02-19 10:55:45 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2021-02-19 10:55:45 +0100
commit873476ed9caaaa7d62fa1344aabfd94c2a6d9f0b (patch)
tree32090bd3fe934ff2801a0ed1876431be83020da7 /pkgs/development/python-modules/adb-shell
parent549ff413cecd2fe6f880881aa5153c19ebc19f5b (diff)
python3Packages.adb-shell: switch to pytestCheckHook
Diffstat (limited to 'pkgs/development/python-modules/adb-shell')
-rw-r--r--pkgs/development/python-modules/adb-shell/default.nix37
1 files changed, 28 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/adb-shell/default.nix b/pkgs/development/python-modules/adb-shell/default.nix
index ab386505b9fdd..5377785ff25a1 100644
--- a/pkgs/development/python-modules/adb-shell/default.nix
+++ b/pkgs/development/python-modules/adb-shell/default.nix
@@ -1,5 +1,16 @@
-{ aiofiles, buildPythonPackage, cryptography, fetchFromGitHub, isPy3k, lib
-, libusb1, mock, pyasn1, python, pycryptodome, rsa }:
+{ lib
+, aiofiles
+, buildPythonPackage
+, cryptography
+, fetchFromGitHub
+, isPy3k
+, libusb1
+, mock
+, pyasn1
+, pycryptodome
+, pytestCheckHook
+, rsa
+}:
 
 buildPythonPackage rec {
   pname = "adb-shell";
@@ -15,16 +26,24 @@ buildPythonPackage rec {
     sha256 = "sha256-b+9ySme44TdIlVnF8AHBBGd8pkoeYG99wmDK/nyAreo=";
   };
 
-  propagatedBuildInputs = [ aiofiles cryptography libusb1 pyasn1 rsa ];
+  propagatedBuildInputs = [
+    aiofiles
+    cryptography
+    libusb1
+    pyasn1
+    rsa
+  ];
 
-  checkInputs = [ mock pycryptodome ];
-  checkPhase = ''
-    ${python.interpreter} -m unittest discover -s tests -t .
-  '';
+  checkInputs = [
+    mock
+    pycryptodome
+    pytestCheckHook
+  ];
+
+  pythonImportsCheck = [ "adb_shell" ];
 
   meta = with lib; {
-    description =
-      "A Python implementation of ADB with shell and FileSync functionality.";
+    description = "Python implementation of ADB with shell and FileSync functionality";
     homepage = "https://github.com/JeffLIrion/adb_shell";
     license = licenses.asl20;
     maintainers = with maintainers; [ jamiemagee ];