Skip to content

Commit

Permalink
Merge pull request #108370 from cole-h/streamlink
Browse files Browse the repository at this point in the history
streamlink: 1.5.0 -> 2.0.0, streamlink-twitch-gui-bin: 1.10.0 -> 1.11.0
  • Loading branch information
worldofpeace committed Jan 5, 2021
2 parents 0a149af + 6e53a6c commit 192325c
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 14 deletions.
37 changes: 29 additions & 8 deletions pkgs/applications/video/streamlink-twitch-gui/bin.nix
@@ -1,8 +1,29 @@
{ autoPatchelfHook, fetchurl, lib, makeDesktopItem, makeWrapper, stdenv, wrapGAppsHook
, at-spi2-core, atk, alsaLib, cairo, cups, dbus, expat, gcc-unwrapped
, gdk-pixbuf, glib, pango, gtk3-x11, libudev0-shim, libuuid, nss, nspr, xorg
, streamlink }:

{ autoPatchelfHook
, fetchurl
, lib
, makeDesktopItem
, makeWrapper
, stdenv
, wrapGAppsHook
, at-spi2-core
, atk
, alsaLib
, cairo
, cups
, dbus
, expat
, gcc-unwrapped
, gdk-pixbuf
, glib
, pango
, gtk3-x11
, libudev0-shim
, libuuid
, nss
, nspr
, xorg
, streamlink
}:
let
basename = "streamlink-twitch-gui";
runtimeLibs = lib.makeLibraryPath [ libudev0-shim ];
Expand All @@ -16,16 +37,16 @@ let
in
stdenv.mkDerivation rec {
pname = "${basename}-bin";
version = "1.10.0";
version = "1.11.0";

src = fetchurl {
url = "https://github.com/streamlink/${basename}/releases/download/v${version}/${basename}-v${version}-${arch}.tar.gz";
sha256 =
if arch == "linux64"
then
"17s9zbzj4pgz9mxxwjbp3788afkddc9s3p7xp28y5084z9wwzph2"
"0y96nziavvpdvrpn58p6a175kaa8cgadp19rnbm250x9cypn1d9y"
else
"1pww05hr48m6v0g1sz48g1c7p615lig3s12l21xgyz4gkjzmjy22";
"0sfmhqf55w7wavqy4idsqpkf5p7l8sapjxap6xvyzpz4z5z6xr7y";
};

nativeBuildInputs = with xorg; [
Expand Down
33 changes: 27 additions & 6 deletions pkgs/applications/video/streamlink/default.nix
@@ -1,21 +1,42 @@
{ stdenv, pythonPackages, fetchFromGitHub, rtmpdump, ffmpeg_3 }:
{ lib
, pythonPackages
, fetchFromGitHub
, rtmpdump
, ffmpeg_3
}:

pythonPackages.buildPythonApplication rec {
version = "1.5.0";
pname = "streamlink";
version = "2.0.0";
disabled = pythonPackages.pythonOlder "3.5.0";

src = fetchFromGitHub {
owner = "streamlink";
repo = "streamlink";
rev = version;
sha256 = "00pishpyim3mcvr9njcbfhj79j85b5xhkslk3mspc2csqknw4k61";
sha256 = "+W9Nu5Ze08r7IlUZOkkVOz582E1Bbj0a3qIQHwxSmj8=";
};

checkInputs = with pythonPackages; [ pytest mock requests-mock freezegun ];
checkInputs = with pythonPackages; [
pytest
mock
requests-mock
freezegun
];

propagatedBuildInputs = (with pythonPackages; [ pycryptodome requests iso-639 iso3166 websocket_client isodate ]) ++ [ rtmpdump ffmpeg_3 ];
propagatedBuildInputs = (with pythonPackages; [
pycryptodome
requests
iso-639
iso3166
websocket_client
isodate
]) ++ [
rtmpdump
ffmpeg_3
];

meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://github.com/streamlink/streamlink";
description = "CLI for extracting streams from various websites to video player of your choosing";
longDescription = ''
Expand Down

0 comments on commit 192325c

Please sign in to comment.