stockholm/makefu/5pkgs/python-firetv/default.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

2018-03-05 22:10:23 +00:00
{ lib, pkgs, python2Packages, ... }:
# requires libusb1 from unstable
with python2Packages; let
2018-03-05 22:10:23 +00:00
python-adb = buildPythonPackage rec {
2018-03-05 22:37:18 +00:00
pname = "adb";
2018-03-05 22:10:23 +00:00
version = "1.2.0";
2018-03-05 22:37:18 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "0v4my47ikgkbq04gdllpx6kql5cfh7dnpq2fk72x03z74mqri7v8";
2018-03-05 22:10:23 +00:00
};
propagatedBuildInputs = [ libusb1 m2crypto ];
meta = {
homepage = https://github.com/google/python-adb;
description = "Python ADB + Fastboot implementation";
2018-03-05 22:37:18 +00:00
license = lib.licenses.asl20;
2018-03-05 22:10:23 +00:00
};
};
in
buildPythonPackage rec {
name = "python-firetv-${version}";
version = "1.0.5";
src = pkgs.fetchFromGitHub {
owner = "happyleavesaoc";
repo = "python-firetv";
2018-03-05 22:37:18 +00:00
# rev = version;
rev = "55406c6";
sha256 = "1r2yighilchs0jvcvbngkjxkk7gp588ikcl64x7afqzxc6zxv7wp";
2018-03-05 22:10:23 +00:00
};
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;
};
}