2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
libusb1,
|
|
|
|
rsa,
|
|
|
|
pycryptodome,
|
|
|
|
pytest,
|
|
|
|
mock,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
|
|
pname = "adb-homeassistant";
|
|
|
|
version = "1.3.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# pypi does not contain tests, using github sources instead
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "JeffLIrion";
|
|
|
|
repo = "python-adb";
|
|
|
|
rev = "5949bf432307cbba7128e84d7bc6add7f054a078";
|
|
|
|
sha256 = "0s3fazvbzchn1fsvjrd1jl8w9y4dvvgq6q8m8p5lr2gri0npr581";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
libusb1
|
|
|
|
rsa
|
|
|
|
pycryptodome
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest
|
|
|
|
mock
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
checkPhase = ''
|
|
|
|
py.test test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Pure python implementation of the Android ADB and Fastboot protocols";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/JeffLIrion/python-adb/tree/adb-homeassistant";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.makefu ];
|
|
|
|
};
|
|
|
|
}
|