mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
python3Packages.adb-shell: switch to pytestCheckHook
This commit is contained in:
parent
549ff413ce
commit
873476ed9c
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user