1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 requests,
6 pytest,
7 flask,
8 isPy27,
9}:
10
11buildPythonPackage rec {
12 version = "4.1";
13 format = "setuptools";
14 pname = "roku";
15 disabled = isPy27;
16
17 src = fetchFromGitHub {
18 owner = "jcarbaugh";
19 repo = "python-roku";
20 rev = "v${version}";
21 sha256 = "09mq59kjll7gj1srw4qc921ncsm7cld95sbz5v3p2bwmgckpqza7";
22 };
23
24 propagatedBuildInputs = [ requests ];
25
26 nativeCheckInputs = [
27 pytest
28 flask
29 ];
30 pythonImportsCheck = [ "roku" ];
31
32 meta = with lib; {
33 description = "Screw remotes. Control your Roku with Python";
34 homepage = "https://github.com/jcarbaugh/python-roku";
35 license = licenses.bsd3;
36 };
37}