depot/third_party/nixpkgs/pkgs/development/python-modules/roku/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

27 lines
666 B
Nix

{ lib, fetchFromGitHub, buildPythonPackage, requests, pytest, flask, isPy27
}:
buildPythonPackage rec {
version = "4.1";
format = "setuptools";
pname = "roku";
disabled = isPy27;
src = fetchFromGitHub {
owner = "jcarbaugh";
repo = "python-roku";
rev = "v${version}";
sha256 = "09mq59kjll7gj1srw4qc921ncsm7cld95sbz5v3p2bwmgckpqza7";
};
propagatedBuildInputs = [ requests ];
nativeCheckInputs = [ pytest flask ];
pythonImportsCheck = [ "roku" ];
meta = with lib; {
description = "Screw remotes. Control your Roku with Python.";
homepage = "https://github.com/jcarbaugh/python-roku";
license = licenses.bsd3;
};
}