all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#32590] [PATCH] Add python-user-agents
@ 2018-08-30 13:19 Maxim Cournoyer
  2018-09-15  4:20 ` bug#32590: " 宋文武
  0 siblings, 1 reply; 2+ messages in thread
From: Maxim Cournoyer @ 2018-08-30 13:19 UTC (permalink / raw)
  To: 32590

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

Hello,

This adds the python-user-agents (and its dependency python-ua-parser).

Thank you,

Maxim


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-python-ua-parser.patch --]
[-- Type: text/x-patch, Size: 1549 bytes --]

From 0a60e87e18a01957bde112505f12c4b8a3ca6487 Mon Sep 17 00:00:00 2001
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Date: Wed, 29 Aug 2018 01:27:04 -0400
Subject: [PATCH 1/2] gnu: Add python-ua-parser.

* gnu/packages/python.scm (python-ua-parser): New variable.
---
 gnu/packages/python.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index f59e24d5f..d7fbbcaa1 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4936,6 +4936,33 @@ toolkit.  Use it to build trees of widgets.")
 (define-public python2-urwidtrees
   (package-with-python2 python-urwidtrees))
 
+(define-public python-ua-parser
+  (package
+    (name "python-ua-parser")
+    (version "0.8.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "ua-parser" version))
+       (sha256
+        (base32
+         "1jwdf58rhchjzzrad405pviv0iq24xa2xmmmdgcm2c8s6b4wzfwp"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:tests? #f))                    ;no test suite in release
+    (native-inputs
+     `(("python-pyyaml" ,python-pyyaml)))
+    (home-page
+     "https://github.com/ua-parser/uap-python")
+    (synopsis
+     "User agent parser")
+    (description
+     "ua-parser is a Python port of Browserscope's user agent parser.")
+    (license license:asl2.0)))
+
+(define-public python2-ua-parser
+  (package-with-python2 python-ua-parser))
+
 (define-public python-dbus
   (package
     (name "python-dbus")
-- 
2.18.0


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

From 34023c33ece173b3adde8af51bab52c7b7aa9292 Mon Sep 17 00:00:00 2001
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Date: Wed, 29 Aug 2018 09:16:30 -0400
Subject: [PATCH 2/2] gnu: Add python-user-agents.

* gnu/packages/python.scm (python-user-agents): New variable.
---
 gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index d7fbbcaa1..0cc62006f 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4963,6 +4963,34 @@ 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")
-- 
2.18.0


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

* bug#32590: [PATCH] Add python-user-agents
  2018-08-30 13:19 [bug#32590] [PATCH] Add python-user-agents Maxim Cournoyer
@ 2018-09-15  4:20 ` 宋文武
  0 siblings, 0 replies; 2+ messages in thread
From: 宋文武 @ 2018-09-15  4:20 UTC (permalink / raw)
  To: Maxim Cournoyer; +Cc: 32590-done

Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:

> Hello,
>
> This adds the python-user-agents (and its dependency python-ua-parser).
>

Pushed, thank you!

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

end of thread, other threads:[~2018-09-15  4:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-30 13:19 [bug#32590] [PATCH] Add python-user-agents Maxim Cournoyer
2018-09-15  4:20 ` bug#32590: " 宋文武

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.