about summary refs log tree commit diff
path: root/pkgs/development/python-modules/adb-homeassistant
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2019-02-24 23:33:44 +0100
committermakefu <github@syntax-fehler.de>2019-02-27 19:26:47 +0100
commit273dd192c0af39b5de30623d301f529b7118f9e6 (patch)
treeae74885ce840a9e0a1e7229b62ca9774c3252ff0 /pkgs/development/python-modules/adb-homeassistant
parent0382f5ef4426ac3b8284408229cad1f8703e60a6 (diff)
pythonPackages.adb-homeassistant: init at 1.3.1
Diffstat (limited to 'pkgs/development/python-modules/adb-homeassistant')
-rw-r--r--pkgs/development/python-modules/adb-homeassistant/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/adb-homeassistant/default.nix b/pkgs/development/python-modules/adb-homeassistant/default.nix
new file mode 100644
index 0000000000000..83dab71e22165
--- /dev/null
+++ b/pkgs/development/python-modules/adb-homeassistant/default.nix
@@ -0,0 +1,40 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, libusb1
+, rsa
+, pycryptodome
+, pytest
+, mock
+}:
+buildPythonPackage rec {
+  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 ];
+  };
+}