diff options
author | Cole Mickens <cole.mickens@gmail.com> | 2020-03-28 09:49:05 +0000 |
---|---|---|
committer | Cole Mickens <cole.mickens@gmail.com> | 2020-03-30 21:22:36 +0000 |
commit | 53dc9d67513eb01ea52691889ad355a11ac825c5 (patch) | |
tree | b1820b922dbfb14cedac0a4011227ceb40db8e65 | |
parent | b310f564c27be7569c934a4435779072484a3594 (diff) |
pythonPackages.roku: init at v4.1
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | pkgs/development/python-modules/roku/default.nix | 26 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
3 files changed, 29 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index b3ae9e6ea863..ca00bc4df574 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ result-* .version-suffix .DS_Store +.mypy_cache /pkgs/development/libraries/qt-5/*/tmp/ /pkgs/desktops/kde-5/*/tmp/ diff --git a/pkgs/development/python-modules/roku/default.nix b/pkgs/development/python-modules/roku/default.nix new file mode 100644 index 000000000000..6cdfa2aa15b1 --- /dev/null +++ b/pkgs/development/python-modules/roku/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchFromGitHub, buildPythonPackage, requests, pytest, flask, isPy27 +}: + +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" ]; + + meta = with stdenv.lib; { + description = "Screw remotes. Control your Roku with Python."; + homepage = "https://github.com/jcarbaugh/python-roku"; + license = licenses.bsd3; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 74003cde6e5b..2e657da33886 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3299,6 +3299,8 @@ in { rethinkdb = callPackage ../development/python-modules/rethinkdb { }; + roku = callPackage ../development/python-modules/roku { }; + roman = callPackage ../development/python-modules/roman { }; rotate-backups = callPackage ../tools/backup/rotate-backups { }; |