summary refs log tree commit diff
path: root/pkgs/applications/video/kodi/plugins.nix
diff options
context:
space:
mode:
authorJan Malakhovski <oxij@oxij.org>2018-09-06 19:40:28 +0000
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2018-11-18 11:19:20 +0100
commite2203319030f2c6e219412fd94044feed3429b8c (patch)
tree38998bcdabeaab70bbc9acbb901d0228b09b837e /pkgs/applications/video/kodi/plugins.nix
parent607c6e78e76614cba04c589221f226e28696d277 (diff)
downloadnixpkgs-e2203319030f2c6e219412fd94044feed3429b8c.tar
nixpkgs-e2203319030f2c6e219412fd94044feed3429b8c.tar.gz
nixpkgs-e2203319030f2c6e219412fd94044feed3429b8c.tar.bz2
nixpkgs-e2203319030f2c6e219412fd94044feed3429b8c.tar.lz
nixpkgs-e2203319030f2c6e219412fd94044feed3429b8c.tar.xz
nixpkgs-e2203319030f2c6e219412fd94044feed3429b8c.tar.zst
nixpkgs-e2203319030f2c6e219412fd94044feed3429b8c.zip
kodiPlugins.yatp: init at 3.3.2
Diffstat (limited to 'pkgs/applications/video/kodi/plugins.nix')
-rw-r--r--pkgs/applications/video/kodi/plugins.nix30
1 files changed, 29 insertions, 1 deletions
diff --git a/pkgs/applications/video/kodi/plugins.nix b/pkgs/applications/video/kodi/plugins.nix
index a0c7c9d017a..91183aca2c4 100644
--- a/pkgs/applications/video/kodi/plugins.nix
+++ b/pkgs/applications/video/kodi/plugins.nix
@@ -1,6 +1,7 @@
 { stdenv, callPackage, fetchurl, fetchFromGitHub, unzip
 , cmake, kodiPlain, libcec_platform, tinyxml
-, steam, libusb, pcre-cpp, jsoncpp, libhdhomerun, zlib }:
+, steam, libusb, pcre-cpp, jsoncpp, libhdhomerun, zlib
+, python2Packages }:
 
 with stdenv.lib;
 
@@ -462,4 +463,31 @@ let self = rec {
     };
   };
 
+  yatp = python2Packages.toPythonModule (mkKodiPlugin rec {
+    plugin = "yatp";
+    namespace = "plugin.video.yatp";
+    version = "3.3.2";
+
+    src = fetchFromGitHub {
+      owner = "romanvm";
+      repo = "kodi.yatp";
+      rev = "v.${version}";
+      sha256 = "12g1f57sx7dy6wy7ljl7siz2qs1kxcmijcg7xx2xpvmq61x9qa2d";
+    };
+
+    patches = [ ./yatp/dont-monkey.patch ];
+
+    propagatedBuildInputs = [
+      simpleplugin
+      python2Packages.requests
+      python2Packages.libtorrentRasterbar
+    ];
+
+    meta = {
+      homepage = src.meta.homepage;
+      description = "Yet Another Torrent Player: libtorrent-based torrent streaming for Kodi";
+      license = licenses.gpl3;
+    };
+  });
+
 }; in self