3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #113393 from fabaff/bump-adb-shell

This commit is contained in:
Sandro 2021-02-19 18:57:18 +01:00 committed by GitHub
commit 906adb1d1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,9 +1,20 @@
{ 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";
version = "0.3.0";
version = "0.3.1";
disabled = !isPy3k;
@ -12,19 +23,27 @@ buildPythonPackage rec {
owner = "JeffLIrion";
repo = "adb_shell";
rev = "v${version}";
sha256 = "0qnlhcd58zxh39cd5xzdx8yc5hc0pf8kix4rbn4avsapwb0l75n2";
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 ];