Merge pull request #108370 from cole-h/streamlink

streamlink: 1.5.0 -> 2.0.0, streamlink-twitch-gui-bin: 1.10.0 -> 1.11.0
This commit is contained in:
WORLDofPEACE 2021-01-05 16:06:45 -05:00 committed by GitHub
commit 192325c47f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 56 additions and 14 deletions

View file

@ -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 ];
@ -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; [

View file

@ -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 = ''