mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
pythonPackages.adb-shell: init at 0.2.3
This commit is contained in:
parent
2fd78292fe
commit
ce18187e34
32
pkgs/development/python-modules/adb-shell/default.nix
Normal file
32
pkgs/development/python-modules/adb-shell/default.nix
Normal file
@ -0,0 +1,32 @@
|
||||
{ aiofiles, buildPythonPackage, cryptography, fetchFromGitHub, isPy3k, lib
|
||||
, libusb1, mock, pyasn1, python, pycryptodome, rsa }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "adb-shell";
|
||||
version = "0.2.3";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
# pypi does not contain tests, using github sources instead
|
||||
src = fetchFromGitHub {
|
||||
owner = "JeffLIrion";
|
||||
repo = "adb_shell";
|
||||
rev = "v${version}";
|
||||
sha256 = "1ay598avmg656cxnc9phdx43z1plsrfjf9png9jwjwyhyjjiqxil";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ aiofiles cryptography libusb1 pyasn1 rsa ];
|
||||
|
||||
checkInputs = [ mock pycryptodome ];
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest discover -s tests -t .
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description =
|
||||
"A Python implementation of ADB with shell and FileSync functionality.";
|
||||
homepage = "https://github.com/JeffLIrion/adb_shell";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ jamiemagee ];
|
||||
};
|
||||
}
|
@ -164,6 +164,8 @@ in {
|
||||
|
||||
adb-homeassistant = callPackage ../development/python-modules/adb-homeassistant { };
|
||||
|
||||
adb-shell = callPackage ../development/python-modules/adb-shell { };
|
||||
|
||||
addic7ed-cli = callPackage ../development/python-modules/addic7ed-cli { };
|
||||
|
||||
adguardhome= callPackage ../development/python-modules/adguardhome { };
|
||||
|
Loading…
Reference in New Issue
Block a user