From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fvN7f-0008Ij-6v for guix-patches@gnu.org; Thu, 30 Aug 2018 09:36:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fvMri-0006cc-Hc for guix-patches@gnu.org; Thu, 30 Aug 2018 09:20:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:33051) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fvMri-0006cW-Dc for guix-patches@gnu.org; Thu, 30 Aug 2018 09:20:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fvMri-0007ct-9V for guix-patches@gnu.org; Thu, 30 Aug 2018 09:20:02 -0400 Subject: [bug#32590] [PATCH] Add python-user-agents Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fvMr2-0001U7-IQ for guix-patches@gnu.org; Thu, 30 Aug 2018 09:19:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fvMqz-0006HX-Fc for guix-patches@gnu.org; Thu, 30 Aug 2018 09:19:20 -0400 Received: from mail-it0-x22b.google.com ([2607:f8b0:4001:c0b::22b]:51129) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fvMqy-0006HI-Ur for guix-patches@gnu.org; Thu, 30 Aug 2018 09:19:17 -0400 Received: by mail-it0-x22b.google.com with SMTP id j81-v6so2550358ite.0 for ; Thu, 30 Aug 2018 06:19:16 -0700 (PDT) Received: from apteryx (107-179-139-151.cpe.teksavvy.com. [107.179.139.151]) by smtp.gmail.com with ESMTPSA id t134-v6sm907218itb.41.2018.08.30.06.19.14 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 Aug 2018 06:19:15 -0700 (PDT) From: Maxim Cournoyer Date: Thu, 30 Aug 2018 09:19:14 -0400 Message-ID: <87tvncat65.fsf@apteryx.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 32590@debbugs.gnu.org --=-=-= Content-Type: text/plain Hello, This adds the python-user-agents (and its dependency python-ua-parser). Thank you, Maxim --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-Add-python-ua-parser.patch >From 0a60e87e18a01957bde112505f12c4b8a3ca6487 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer 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 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0002-gnu-Add-python-user-agents.patch >From 34023c33ece173b3adde8af51bab52c7b7aa9292 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer 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 --=-=-=--