python3Packages.adb-shell: switch to pytestCheckHook

This commit is contained in:
Fabian Affolter 2021-02-19 10:55:45 +01:00
parent 549ff413ce
commit 873476ed9c

View file

@ -1,5 +1,16 @@
{ aiofiles, buildPythonPackage, cryptography, fetchFromGitHub, isPy3k, lib { lib
, libusb1, mock, pyasn1, python, pycryptodome, rsa }: , aiofiles
, buildPythonPackage
, cryptography
, fetchFromGitHub
, isPy3k
, libusb1
, mock
, pyasn1
, pycryptodome
, pytestCheckHook
, rsa
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "adb-shell"; pname = "adb-shell";
@ -15,16 +26,24 @@ buildPythonPackage rec {
sha256 = "sha256-b+9ySme44TdIlVnF8AHBBGd8pkoeYG99wmDK/nyAreo="; sha256 = "sha256-b+9ySme44TdIlVnF8AHBBGd8pkoeYG99wmDK/nyAreo=";
}; };
propagatedBuildInputs = [ aiofiles cryptography libusb1 pyasn1 rsa ]; propagatedBuildInputs = [
aiofiles
cryptography
libusb1
pyasn1
rsa
];
checkInputs = [ mock pycryptodome ]; checkInputs = [
checkPhase = '' mock
${python.interpreter} -m unittest discover -s tests -t . pycryptodome
''; pytestCheckHook
];
pythonImportsCheck = [ "adb_shell" ];
meta = with lib; { meta = with lib; {
description = description = "Python implementation of ADB with shell and FileSync functionality";
"A Python implementation of ADB with shell and FileSync functionality.";
homepage = "https://github.com/JeffLIrion/adb_shell"; homepage = "https://github.com/JeffLIrion/adb_shell";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ jamiemagee ]; maintainers = with maintainers; [ jamiemagee ];