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