blob: bb2f561b71d40c1509967e72356453002d0a33bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
libusb1,
rsa,
pycryptodome,
pytest,
mock,
}:
buildPythonPackage {
pname = "adb-homeassistant";
version = "1.3.1";
format = "setuptools";
# pypi does not contain tests, using github sources instead
src = fetchFromGitHub {
owner = "JeffLIrion";
repo = "python-adb";
rev = "5949bf432307cbba7128e84d7bc6add7f054a078";
sha256 = "0s3fazvbzchn1fsvjrd1jl8w9y4dvvgq6q8m8p5lr2gri0npr581";
};
propagatedBuildInputs = [
libusb1
rsa
pycryptodome
];
nativeCheckInputs = [
pytest
mock
];
checkPhase = ''
py.test test
'';
meta = {
description = "Pure python implementation of the Android ADB and Fastboot protocols";
homepage = "https://github.com/JeffLIrion/python-adb/tree/adb-homeassistant";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.makefu ];
};
}
|