biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / adb-shell / default.nix
blobb37440c51c8b8852b10f7260310ccefb56e95272
2   lib,
3   aiofiles,
4   async-timeout,
5   buildPythonPackage,
6   cryptography,
7   fetchFromGitHub,
8   isPy3k,
9   libusb1,
10   mock,
11   pyasn1,
12   pycryptodome,
13   pytestCheckHook,
14   rsa,
17 buildPythonPackage rec {
18   pname = "adb-shell";
19   version = "0.4.4";
20   format = "setuptools";
22   disabled = !isPy3k;
24   src = fetchFromGitHub {
25     owner = "JeffLIrion";
26     repo = "adb_shell";
27     rev = "v${version}";
28     hash = "sha256-pOkFUh3SEu/ch9R1lVoQn50nufQp8oI+D4/+Ybal5CA=";
29   };
31   propagatedBuildInputs = [
32     cryptography
33     pyasn1
34     rsa
35   ];
37   optional-dependencies = {
38     async = [
39       aiofiles
40       async-timeout
41     ];
42     usb = [ libusb1 ];
43   };
45   nativeCheckInputs = [
46     mock
47     pycryptodome
48     pytestCheckHook
49   ] ++ lib.flatten (builtins.attrValues optional-dependencies);
51   pythonImportsCheck = [ "adb_shell" ];
53   meta = with lib; {
54     description = "Python implementation of ADB with shell and FileSync functionality";
55     homepage = "https://github.com/JeffLIrion/adb_shell";
56     license = licenses.asl20;
57     maintainers = with maintainers; [ jamiemagee ];
58   };