unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCHES] gnu: Add livestreamer.
@ 2015-04-04 17:22 David Thompson
  2015-04-05  5:13 ` Mark H Weaver
  0 siblings, 1 reply; 3+ messages in thread
From: David Thompson @ 2015-04-04 17:22 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 129 bytes --]

This small patch set adds livestreamer, which is like youtube-dl but for
live streaming websites, and its missing dependencies.


[-- Attachment #2: 0001-gnu-python-requests-Fix-Python-2-version-and-add-sup.patch --]
[-- Type: text/x-diff, Size: 1767 bytes --]

From 67f1a7d362f9d379b4fa5f905b01193b5531509d Mon Sep 17 00:00:00 2001
From: David Thompson <dthompson2@worcester.edu>
Date: Sat, 4 Apr 2015 13:15:40 -0400
Subject: [PATCH 1/3] gnu: python-requests: Fix Python 2 version and add
 support for Python 3.

* gnu/packages/python.scm (python-requests): New variable.
  (python2-requests): Generate based on Python 3 variant.
---
 gnu/packages/python.scm | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index c5cae6d..8c86d5a 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1571,9 +1571,9 @@ is used by the Requests library to verify HTTPS requests.")
 (define-public python2-certifi
   (package-with-python2 python-certifi))
 
-(define-public python2-requests
+(define-public python-requests
   (package
-    (name "python2-requests")
+    (name "python-requests")
     (version "2.4.0")
     (source (origin
              (method url-fetch)
@@ -1588,8 +1588,7 @@ is used by the Requests library to verify HTTPS requests.")
     (inputs
      `(("python-setuptools" ,python-setuptools)
        ("python-certifi" ,python-certifi)))
-    (arguments `(#:tests? #f ; no tests
-                 #:python ,python-2))
+    (arguments `(#:tests? #f)) ; no tests
     (home-page "http://python-requests.org/")
     (synopsis "Python HTTP library")
     (description
@@ -1597,6 +1596,9 @@ is used by the Requests library to verify HTTPS requests.")
 than Python’s urllib2 library.")
     (license asl2.0)))
 
+(define-public python2-requests
+  (package-with-python2 python-requests))
+
 (define-public python-jsonschema
   (package
     (name "python-jsonschema")
-- 
2.1.4


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0002-gnu-Add-python-singledispatch.patch --]
[-- Type: text/x-diff, Size: 1804 bytes --]

From 472370aabae4171e69eccf8927aa09337b49cfcf Mon Sep 17 00:00:00 2001
From: David Thompson <dthompson2@worcester.edu>
Date: Sat, 4 Apr 2015 13:17:35 -0400
Subject: [PATCH 2/3] gnu: Add python-singledispatch.

* gnu/packages/python.scm (python-singledispath, python2-singledispatch): New
  variables.
---
 gnu/packages/python.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 8c86d5a..8f19f89 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -3448,3 +3448,33 @@ Python style, together with a fast and comfortable execution environment.")
 library for Python programs.  It is useful to implement low-level X clients.
 It is written entirely in Python.")
     (license gpl2+)))
+
+(define-public python-singledispatch
+  (package
+    (name "python-singledispatch")
+    (version "3.4.0.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://pypi.python.org/packages/source/s/singledispatch/singledispatch-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "171b7ip0hsq5qm83np40h3phlr36ym18w0lay0a8v08kvy3sy1jv"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-setuptools" ,python-setuptools)))
+    (propagated-inputs
+     `(("python-six" ,python-six)))
+    (home-page
+     "http://docs.python.org/3/library/functools.html#functools.singledispatch")
+    (synopsis "Backport of singledispatch feature from Python 3.4")
+    (description
+     "This library brings functools.singledispatch from Python 3.4 to Python
+2.6-3.3.")
+    (license license:expat)))
+
+(define-public python2-singledispatch
+  (package-with-python2 python-singledispatch))
-- 
2.1.4


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #4: 0003-gnu-Add-livestreamer.patch --]
[-- Type: text/x-diff, Size: 1766 bytes --]

From af76cababb6550081be6aaf9db45ef370b278df1 Mon Sep 17 00:00:00 2001
From: David Thompson <dthompson2@worcester.edu>
Date: Sat, 4 Apr 2015 13:18:40 -0400
Subject: [PATCH 3/3] gnu: Add livestreamer.

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

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index c6eb859..98f4a3a 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -1261,3 +1261,29 @@ codec library.  It uses ASP features such as b-frames, global and quarter
 pixel motion compensation, lumi masking, trellis quantization, and H.263, MPEG
 and custom quantization matrices.")
     (license license:gpl2+)))
+
+(define-public livestreamer
+  (package
+    (name "livestreamer")
+    (version "1.12.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://github.com/chrippa/livestreamer/archive/v"
+                    version ".tar.gz"))
+              (sha256
+               (base32
+                "1dhgk8v8q1h3km4g5jc0cmjsxdaa2d456fvdb2wk7hmxmmwbqm9j"))))
+    (build-system python-build-system)
+    (arguments
+     '(#:tests? #f)) ; tests rely on external web servers
+    (native-inputs
+     `(("python-setuptools" ,python-setuptools)))
+    (propagated-inputs
+     `(("python-requests" ,python-requests)
+       ("python-singledispatch" ,python-singledispatch)))
+    (synopsis "Internet video stream viewer")
+    (description "Livestreamer is a command-line utility that extracts streams
+from various services and pipes them into a video playing application.")
+    (home-page "http://livestreamer.io/")
+    (license license:bsd-2)))
-- 
2.1.4


[-- Attachment #5: Type: text/plain, Size: 136 bytes --]


-- 
David Thompson
Web Developer - Free Software Foundation - http://fsf.org
GPG Key: 0FF1D807
Support the FSF: https://fsf.org/donate

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCHES] gnu: Add livestreamer.
  2015-04-04 17:22 [PATCHES] gnu: Add livestreamer David Thompson
@ 2015-04-05  5:13 ` Mark H Weaver
  2015-04-05 16:44   ` David Thompson
  0 siblings, 1 reply; 3+ messages in thread
From: Mark H Weaver @ 2015-04-05  5:13 UTC (permalink / raw)
  To: David Thompson; +Cc: guix-devel

David Thompson <dthompson2@worcester.edu> writes:

> This small patch set adds livestreamer, which is like youtube-dl but for
> live streaming websites, and its missing dependencies.

Excellent!  See below for comments.

> From 67f1a7d362f9d379b4fa5f905b01193b5531509d Mon Sep 17 00:00:00 2001
> From: David Thompson <dthompson2@worcester.edu>
> Date: Sat, 4 Apr 2015 13:15:40 -0400
> Subject: [PATCH 1/3] gnu: python-requests: Fix Python 2 version and add
>  support for Python 3.

Looks good!

> From 472370aabae4171e69eccf8927aa09337b49cfcf Mon Sep 17 00:00:00 2001
> From: David Thompson <dthompson2@worcester.edu>
> Date: Sat, 4 Apr 2015 13:17:35 -0400
> Subject: [PATCH 2/3] gnu: Add python-singledispatch.
>
> * gnu/packages/python.scm (python-singledispath, python2-singledispatch): New

Typo: "python-singledispath" is missing the "c".

>   variables.
> ---
>  gnu/packages/python.scm | 30 ++++++++++++++++++++++++++++++
>  1 file changed, 30 insertions(+)
>
>
> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
> index 8c86d5a..8f19f89 100644
> --- a/gnu/packages/python.scm
> +++ b/gnu/packages/python.scm
> @@ -3448,3 +3448,33 @@ Python style, together with a fast and comfortable execution environment.")
>  library for Python programs.  It is useful to implement low-level X clients.
>  It is written entirely in Python.")
>      (license gpl2+)))
> +
> +(define-public python-singledispatch
> +  (package
> +    (name "python-singledispatch")
> +    (version "3.4.0.3")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append
> +             "https://pypi.python.org/packages/source/s/singledispatch/singledispatch-"
> +             version
> +             ".tar.gz"))

To avoid the long lines, how about this?

--8<---------------cut here---------------start------------->8---
       (uri (string-append
             "https://pypi.python.org/packages/source/s/singledispatch/"
             "singledispatch-" version ".tar.gz"))
--8<---------------cut here---------------end--------------->8---

> From af76cababb6550081be6aaf9db45ef370b278df1 Mon Sep 17 00:00:00 2001
> From: David Thompson <dthompson2@worcester.edu>
> Date: Sat, 4 Apr 2015 13:18:40 -0400
> Subject: [PATCH 3/3] gnu: Add livestreamer.
>
> * gnu/packages/video.scm (livestreamer): New variable.
> ---
>  gnu/packages/video.scm | 26 ++++++++++++++++++++++++++
>  1 file changed, 26 insertions(+)
>
>
> diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
> index c6eb859..98f4a3a 100644
> --- a/gnu/packages/video.scm
> +++ b/gnu/packages/video.scm
> @@ -1261,3 +1261,29 @@ codec library.  It uses ASP features such as b-frames, global and quarter
>  pixel motion compensation, lumi masking, trellis quantization, and H.263, MPEG
>  and custom quantization matrices.")
>      (license license:gpl2+)))
> +
> +(define-public livestreamer
> +  (package
> +    (name "livestreamer")
> +    (version "1.12.1")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (string-append
> +                    "https://github.com/chrippa/livestreamer/archive/v"
> +                    version ".tar.gz"))

Please add a 'file-name' field to this 'origin'.  Otherwise the store
name of the source code will be /gnu/store/...-v1.21.1.tar.gz.

Otherwise looks good to me!

    Thanks,
      Mark

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCHES] gnu: Add livestreamer.
  2015-04-05  5:13 ` Mark H Weaver
@ 2015-04-05 16:44   ` David Thompson
  0 siblings, 0 replies; 3+ messages in thread
From: David Thompson @ 2015-04-05 16:44 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: guix-devel

Mark H Weaver <mhw@netris.org> writes:

[...]
> Otherwise looks good to me!

Fixed everything you mentioned and pushed.  Thanks!

-- 
David Thompson
Web Developer - Free Software Foundation - http://fsf.org
GPG Key: 0FF1D807
Support the FSF: https://fsf.org/donate

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-04-05 16:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-04 17:22 [PATCHES] gnu: Add livestreamer David Thompson
2015-04-05  5:13 ` Mark H Weaver
2015-04-05 16:44   ` David Thompson

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).