unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Oleg Pykhalov <go.wigust@gmail.com>
To: Leo Famulari <leo@famulari.name>
Cc: 30211@debbugs.gnu.org
Subject: [bug#30211] [PATCH 4/4] gnu: Add streamlink.
Date: Tue, 23 Jan 2018 13:40:03 +0300	[thread overview]
Message-ID: <87mv14rh8c.fsf@gmail.com> (raw)
In-Reply-To: <20180122203549.GD31770@jasmine.lan> (Leo Famulari's message of "Mon, 22 Jan 2018 15:35:49 -0500")


[-- Attachment #1.1: Type: text/plain, Size: 1928 bytes --]

Leo Famulari <leo@famulari.name> writes:

> On Mon, Jan 22, 2018 at 11:05:25PM +0300, Oleg Pykhalov wrote:
>> * gnu/packages/video.scm (streamlink): New public variable.
>
>> +(define-public streamlink
>
>> +    (inputs
>> +     `(("python-pysocks" ,python-pysocks)
>> +       ("python-websocket-client" ,python-websocket-client)
>> +       ("python-iso3166" ,python-iso3166)
>> +       ("python-iso639" ,python-iso639)
>> +       ("python-pycryptodome" ,python-pycryptodome)
>> +       ("python-requests" ,python-requests)
>> +       ("python-pytest" ,python-pytest)
>> +       ("python-mock" ,python-mock)))
>
> In general, run-time Python dependencies need to be propagated-inputs.
> However, some of these are probably only used while building and can be
> native-inputs; I'd guess that pytest and mock are in that category.

Oh, yes.  guix lint warns about pytest and mock.  Thanks for notice!

Everything else probably required at run time.

>> +    (synopsis "Extract streams from various services")
>> +    (description "Streamlink is command-line utility that extracts streams
>> +from various services and pipes them into a video player of choice.")
>
> It would be helpful to mention some of the services that it can be used
> with.

Dunno about services.  I use it as livestreamer:
--8<---------------cut here---------------start------------->8---
    # View a video stream from a predefined services in MPV
    streamlink -p mpv URL QUALITY
--8<---------------cut here---------------end--------------->8---


By the way livestreamer is not maintained anymore.

From <https://github.com/chrippa/livestreamer>:

    Command-line utility that extracts streams from various services and
    pipes them into a video player of choice. No longer maintained, use
    streamlink or youtube-dl instead.

Probably livestreamer should be removed from Guix, but I'm not sure.



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: [PATCH 4/4] gnu: Add streamlink. --]
[-- Type: text/x-patch, Size: 2423 bytes --]

From eac6cf3575094e32d029a325397566b21fce2d18 Mon Sep 17 00:00:00 2001
From: Oleg Pykhalov <go.wigust@gmail.com>
Date: Fri, 19 Jan 2018 22:59:12 +0300
Subject: [PATCH] gnu: Add streamlink.

* gnu/packages/video.scm (streamlink): New public variable.
---
 gnu/packages/video.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index e7285e50b..fe8bcac99 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -89,6 +89,7 @@
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages image)
   #:use-module (gnu packages imagemagick)
+  #:use-module (gnu packages iso-codes)
   #:use-module (gnu packages libreoffice)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages lua)
@@ -102,6 +103,7 @@
   #:use-module (gnu packages popt)
   #:use-module (gnu packages pulseaudio)
   #:use-module (gnu packages python)
+  #:use-module (gnu packages python-crypto)
   #:use-module (gnu packages python-web)
   #:use-module (gnu packages qt)
   #:use-module (gnu packages ruby)
@@ -1725,6 +1727,34 @@ from various services and pipes them into a video playing application.")
     (home-page "http://livestreamer.io/")
     (license license:bsd-2)))
 
+(define-public streamlink
+  (package
+    (name "streamlink")
+    (version "0.9.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "streamlink" version))
+       (sha256
+        (base32
+         "1in0jqg9xpqwjkzskyy2iyq8zcfmsqich18mfyr47g62y3pjy98a"))))
+    (build-system python-build-system)
+    (home-page "https://github.com/streamlink/streamlink")
+    (native-inputs
+     `(("python-pytest" ,python-pytest)
+       ("python-mock" ,python-mock)))
+    (propagated-inputs
+     `(("python-pysocks" ,python-pysocks)
+       ("python-websocket-client" ,python-websocket-client)
+       ("python-iso3166" ,python-iso3166)
+       ("python-iso639" ,python-iso639)
+       ("python-pycryptodome" ,python-pycryptodome)
+       ("python-requests" ,python-requests)))
+    (synopsis "Extract streams from various services")
+    (description "Streamlink is command-line utility that extracts streams
+from various services and pipes them into a video player of choice.")
+    (license license:bsd-2)))
+
 (define-public mlt
   (package
     (name "mlt")
-- 
2.15.1


[-- Attachment #1.3: Type: text/plain, Size: 8 bytes --]



Oleg.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  reply	other threads:[~2018-01-23 10:41 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-22 19:33 [bug#30211] gnu: Add streamlink (program to extract streams from various services) Oleg Pykhalov
2018-01-22 20:05 ` [bug#30211] [PATCH 2/4] gnu: Add python-iso3166 Oleg Pykhalov
2018-01-22 20:05   ` [bug#30211] [PATCH 3/4] gnu: Add python-pycryptodome Oleg Pykhalov
2018-01-22 20:33     ` Leo Famulari
2018-01-23 10:23       ` Oleg Pykhalov
2018-01-23 21:25         ` Leo Famulari
2018-01-24 21:48           ` Oleg Pykhalov
2018-01-22 20:05   ` [bug#30211] [PATCH 4/4] gnu: Add streamlink Oleg Pykhalov
2018-01-22 20:35     ` Leo Famulari
2018-01-23 10:40       ` Oleg Pykhalov [this message]
2018-01-23 11:05       ` Oleg Pykhalov
2018-01-23 21:36         ` Leo Famulari
2018-01-24 21:58           ` bug#30211: " Oleg Pykhalov
2018-01-22 20:29   ` [bug#30211] [PATCH 2/4] gnu: Add python-iso3166 Leo Famulari
2018-01-23 11:25     ` Oleg Pykhalov
2018-01-24 21:50       ` Oleg Pykhalov
2018-01-22 20:28 ` [bug#30211] gnu: Add streamlink (program to extract streams from various services) Leo Famulari
2018-01-23 10:47   ` Oleg Pykhalov
2018-01-23 21:20     ` Leo Famulari
2018-01-24 21:50       ` Oleg Pykhalov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mv14rh8c.fsf@gmail.com \
    --to=go.wigust@gmail.com \
    --cc=30211@debbugs.gnu.org \
    --cc=leo@famulari.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).