uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
|
|
@ -0,0 +1,40 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, libusb1
|
||||
, rsa
|
||||
, pycryptodome
|
||||
, pytest
|
||||
, mock
|
||||
}:
|
||||
buildPythonPackage {
|
||||
pname = "adb-homeassistant";
|
||||
version = "1.3.1";
|
||||
|
||||
# pypi does not contain tests, using github sources instead
|
||||
src = fetchFromGitHub {
|
||||
owner = "JeffLIrion";
|
||||
repo = "python-adb";
|
||||
rev = "5949bf432307cbba7128e84d7bc6add7f054a078";
|
||||
sha256 = "0s3fazvbzchn1fsvjrd1jl8w9y4dvvgq6q8m8p5lr2gri0npr581";
|
||||
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
libusb1
|
||||
rsa
|
||||
pycryptodome
|
||||
];
|
||||
|
||||
checkInputs = [ pytest mock ];
|
||||
checkPhase = ''
|
||||
py.test test
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A pure python implementation of the Android ADB and Fastboot protocols";
|
||||
homepage = "https://github.com/JeffLIrion/python-adb/tree/adb-homeassistant";
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.makefu ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue