guix-commits
[Top][All Lists]
Advanced

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

03/03: gnu: Add python-user-agents.


From: ???
Subject: 03/03: gnu: Add python-user-agents.
Date: Sat, 15 Sep 2018 00:19:24 -0400 (EDT)

iyzsong pushed a commit to branch master
in repository guix.

commit 511f3be695bb4a3c83218e3fea273063da378051
Author: Maxim Cournoyer <address@hidden>
Date:   Wed Aug 29 09:16:30 2018 -0400

    gnu: Add python-user-agents.
    
    * gnu/packages/python.scm (python-user-agents, python2-user-agents): New
    variables.
    
    Signed-off-by: 宋文武 <address@hidden>
---
 gnu/packages/python.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 3c8b68e..30b65f6 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -5031,6 +5031,32 @@ toolkit.  Use it to build trees of widgets.")
 (define-public python2-ua-parser
   (package-with-python2 python-ua-parser))
 
+(define-public python-user-agents
+  (package
+    (name "python-user-agents")
+    (version "1.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "user-agents" version))
+       (sha256
+        (base32
+         "0fc00cd3j8dahq1zzn8pkgfgd7lq37bp2scmdma2n1c049vicgb4"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:tests? #f))                  ;missing devices.json test file in 
release
+    (propagated-inputs
+     `(("python-ua-parser" ,python-ua-parser)))
+    (home-page "https://github.com/selwin/python-user-agents";)
+    (synopsis "User Agent strings parsing library")
+  (description
+   "A library to identify devices (phones, tablets) and their capabilities by
+parsing (browser/HTTP) user agent strings.")
+  (license license:expat)))
+
+(define-public python2-user-agents
+  (package-with-python2 python-user-agents))
+
 (define-public python-dbus
   (package
     (name "python-dbus")



reply via email to

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