guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: gnu: Add python-pafy.


From: Marius Bakke
Subject: 01/02: gnu: Add python-pafy.
Date: Sat, 5 Nov 2016 12:33:10 +0000 (UTC)

mbakke pushed a commit to branch master
in repository guix.

commit 02f8f804f0242df885311715412a1e3ee5436f3b
Author: ng0 <address@hidden>
Date:   Fri Nov 4 19:23:01 2016 +0000

    gnu: Add python-pafy.
    
    * gnu/packages/python.scm (python-pafy): New variable.
    
    Signed-off-by: Marius Bakke <address@hidden>
---
 gnu/packages/python.scm |   23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 518ab3a..ed4a078 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -86,6 +86,7 @@
   #:use-module (gnu packages texinfo)
   #:use-module (gnu packages tls)
   #:use-module (gnu packages version-control)
+  #:use-module (gnu packages video)
   #:use-module (gnu packages web)
   #:use-module (gnu packages base)
   #:use-module (gnu packages xml)
@@ -1583,6 +1584,28 @@ standard library.")
      `(#:python ,python-2
        #:tests? #f)))) ; no setup.py test command
 
+(define-public python-pafy
+  (package
+    (name "python-pafy")
+    (version "0.5.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pafy" version))
+       (sha256
+        (base32
+         "1ckvrypyvb7jbqlgwdz0y337ajagjv7dgxyns326nqwypn1wpq0i"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     ;; Youtube-dl is a python package which is imported in the file
+     ;; "backend_youtube_dl.py", therefore it needs to be propagated.
+     `(("youtube-dl" ,youtube-dl)))
+    (home-page "https://np1.github.io/pafy/";)
+    (synopsis "Retrieve YouTube content and metadata")
+    (description
+     "@code{pafy} is a python library to retrieve YouTube content and 
metadata.")
+    (license license:lgpl3+)))
+
 (define-public python-py
   (package
     (name "python-py")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]