2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, buildPythonPackage, requests, pytest, flask, isPy27
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
version = "4.1";
|
|
|
|
pname = "roku";
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jcarbaugh";
|
|
|
|
repo = "python-roku";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "09mq59kjll7gj1srw4qc921ncsm7cld95sbz5v3p2bwmgckpqza7";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest flask ];
|
|
|
|
pythonImportsCheck = [ "roku" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Screw remotes. Control your Roku with Python.";
|
|
|
|
homepage = "https://github.com/jcarbaugh/python-roku";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|