nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 aiofiles,
3 buildPythonPackage,
4 fetchPypi,
5 lib,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "pure-python-adb";
11 version = "0.3.0.dev0";
12 format = "setuptools";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "0kdr7w2fhgjpcf1k3l6an9im583iqkr6v8hb4q1zw30nh3bqkk0f";
17 };
18
19 optional-dependencies = {
20 async = [ aiofiles ];
21 };
22
23 doCheck = false; # all tests result in RuntimeError
24
25 nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.async;
26
27 pythonImportsCheck = [ "ppadb.client" ] ++ lib.optionals doCheck [ "ppadb.client_async" ];
28
29 meta = {
30 description = "Pure python implementation of the adb client";
31 homepage = "https://github.com/Swind/pure-python-adb";
32 license = lib.licenses.mit;
33 maintainers = with lib.maintainers; [ jamiemagee ];
34 };
35}