depot/third_party/nixpkgs/pkgs/development/python-modules/adb-shell/default.nix
Default email 1693fb2285 Project import generated by Copybara.
GitOrigin-RevId: 420f89ceb267b461eed5d025b6c3c0e57703cc5c
2020-10-07 11:15:18 +02:00

32 lines
924 B
Nix

{ aiofiles, buildPythonPackage, cryptography, fetchFromGitHub, isPy3k, lib
, libusb1, mock, pyasn1, python, pycryptodome, rsa }:
buildPythonPackage rec {
pname = "adb-shell";
version = "0.2.3";
disabled = !isPy3k;
# pypi does not contain tests, using github sources instead
src = fetchFromGitHub {
owner = "JeffLIrion";
repo = "adb_shell";
rev = "v${version}";
sha256 = "1ay598avmg656cxnc9phdx43z1plsrfjf9png9jwjwyhyjjiqxil";
};
propagatedBuildInputs = [ aiofiles cryptography libusb1 pyasn1 rsa ];
checkInputs = [ mock pycryptodome ];
checkPhase = ''
${python.interpreter} -m unittest discover -s tests -t .
'';
meta = with lib; {
description =
"A Python implementation of ADB with shell and FileSync functionality.";
homepage = "https://github.com/JeffLIrion/adb_shell";
license = licenses.asl20;
maintainers = with maintainers; [ jamiemagee ];
};
}