2021-02-19 09:55:45 +00:00
|
|
|
{ lib
|
|
|
|
, aiofiles
|
|
|
|
, buildPythonPackage
|
|
|
|
, cryptography
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy3k
|
|
|
|
, libusb1
|
|
|
|
, mock
|
|
|
|
, pyasn1
|
|
|
|
, pycryptodome
|
|
|
|
, pytestCheckHook
|
|
|
|
, rsa
|
|
|
|
}:
|
2020-09-24 09:32:45 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "adb-shell";
|
2021-02-17 11:03:46 +00:00
|
|
|
version = "0.3.1";
|
2020-09-24 09:32:45 +01:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
# pypi does not contain tests, using github sources instead
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "JeffLIrion";
|
|
|
|
repo = "adb_shell";
|
|
|
|
rev = "v${version}";
|
2021-02-17 11:03:46 +00:00
|
|
|
sha256 = "sha256-b+9ySme44TdIlVnF8AHBBGd8pkoeYG99wmDK/nyAreo=";
|
2020-09-24 09:32:45 +01:00
|
|
|
};
|
|
|
|
|
2021-02-19 09:55:45 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiofiles
|
|
|
|
cryptography
|
|
|
|
libusb1
|
|
|
|
pyasn1
|
|
|
|
rsa
|
|
|
|
];
|
2020-09-24 09:32:45 +01:00
|
|
|
|
2021-02-19 09:55:45 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pycryptodome
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "adb_shell" ];
|
2020-09-24 09:32:45 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-02-19 09:55:45 +00:00
|
|
|
description = "Python implementation of ADB with shell and FileSync functionality";
|
2020-09-24 09:32:45 +01:00
|
|
|
homepage = "https://github.com/JeffLIrion/adb_shell";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ jamiemagee ];
|
|
|
|
};
|
|
|
|
}
|