summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs/python-firetv/default.nix
diff options
context:
space:
mode:
authorjeschli <jeschli@gmail.com>2018-03-22 11:42:05 +0100
committerjeschli <jeschli@gmail.com>2018-03-22 11:42:05 +0100
commit9bb628406d001fbf9070bf533f1b81f43f4c96a8 (patch)
treea0b95f82f3c3a0b52ebc87f6c7756de70d646bfb /makefu/5pkgs/python-firetv/default.nix
parent87528e2ab6085a1a0fadcd1aa00870834c878c27 (diff)
parentbd4def24bfbd8f034032e3a6e89ce4dd88d6930e (diff)
Merge branch 'master' of prism.r:stockholm
Diffstat (limited to 'makefu/5pkgs/python-firetv/default.nix')
-rw-r--r--makefu/5pkgs/python-firetv/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/makefu/5pkgs/python-firetv/default.nix b/makefu/5pkgs/python-firetv/default.nix
new file mode 100644
index 000000000..1fb772f1f
--- /dev/null
+++ b/makefu/5pkgs/python-firetv/default.nix
@@ -0,0 +1,40 @@
+{ lib, pkgs, python2Packages, ... }:
+# requires libusb1 from unstable
+with (import <nixpkgs-unstable> {}).python2Packages; let
+
+ python-adb = buildPythonPackage rec {
+ pname = "adb";
+ version = "1.2.0";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "0v4my47ikgkbq04gdllpx6kql5cfh7dnpq2fk72x03z74mqri7v8";
+ };
+
+ propagatedBuildInputs = [ libusb1 m2crypto ];
+ meta = {
+ homepage = https://github.com/google/python-adb;
+ description = "Python ADB + Fastboot implementation";
+ license = lib.licenses.asl20;
+ };
+ };
+in
+ buildPythonPackage rec {
+ name = "python-firetv-${version}";
+ version = "1.0.5";
+
+ src = pkgs.fetchFromGitHub {
+ owner = "happyleavesaoc";
+ repo = "python-firetv";
+ # rev = version;
+ rev = "55406c6";
+ sha256 = "1r2yighilchs0jvcvbngkjxkk7gp588ikcl64x7afqzxc6zxv7wp";
+ };
+
+ propagatedBuildInputs = [ python-adb flask pyyaml ];
+ meta = {
+ homepage = https://github.com/happyleavesaoc/python-firetv;
+ description = "provides state informations and some control of an amazon firetv";
+ license = lib.licenses.mit;
+ };
+}