From: Hartmut Goebel <h.goebel@crazy-compilers.com>
To: guix-devel@gnu.org
Subject: [PATCH 5/6] gnu: add python-maxminddb and python2-maxminddb
Date: Thu, 21 Apr 2016 21:19:52 +0200 [thread overview]
Message-ID: <1461266395-2731-6-git-send-email-h.goebel@crazy-compilers.com> (raw)
In-Reply-To: <1461266395-2731-1-git-send-email-h.goebel@crazy-compilers.com>
* gnu/packages/python.scm: (python-maxminddb) (python2-maxminddb):
New variable.
---
gnu/packages/python.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index cc7e52f..0d07451 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8851,3 +8851,42 @@ for e.g. automating web-based administration tasks.")
(define-public python2-selenium
(package-with-python2 python-selenium))
+
+(define-public python-maxminddb
+ (package
+ (name "python-maxminddb")
+ (version "1.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "maxminddb" version))
+ (sha256
+ (base32
+ "1f7smwdn5x3rnjzyl46n7dmxpjis6qkb6akk5w2nnc8ik936rgq0"))))
+ (build-system python-build-system)
+ (arguments
+ ;; tests require a copy of the maxminddb which is not included
+ `(#:tests? #f))
+ (inputs
+ ;; todo: if libmaxmind is available, add it here to get the C-extension
+ `(("python-setuptools" ,python-setuptools)))
+ (native-inputs
+ `(("python-nose" ,python-nose)))
+ (home-page "http://www.maxmind.com/")
+ (synopsis "Reader for the MaxMind DB format")
+ (description "MaxMind DB is a binary file format that stores data indexed
+by IP address subnets (IPv4 or IPv6). This is a Python module for reading
+MaxMind DB files.")
+ ;; todo: currently only the pure-Python reader is build, see above
+ ;; The module includes both a pure Python reader and an
+ ;; optional C extension.")
+ (license asl2.0)
+ (properties `((python2-variant . ,(delay python2-maxminddb))))))
+
+(define-public python2-maxminddb
+ (let ((base (package-with-python2 (strip-python2-variant python-maxminddb))))
+ (package (inherit base)
+ (inputs
+ `(("python2-ipaddr" ,python2-ipaddr)
+ ,@(package-inputs base))))))
+
--
2.7.4
next prev parent reply other threads:[~2016-04-21 19:20 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-21 19:19 [PATCH 0/6] Updated: Some new python packages Hartmut Goebel
2016-04-21 19:19 ` [PATCH 1/6] gnu: Add python-tblib and python2-tblib Hartmut Goebel
2016-04-24 19:40 ` Leo Famulari
2016-04-21 19:19 ` [PATCH 2/6] gnu: add python-sqlparse and python2-sqlparse Hartmut Goebel
2016-04-24 19:24 ` Branching based on Python version (was [PATCH 2/6] gnu: add python-sqlparse and python2-sqlparse) Leo Famulari
2016-04-24 21:40 ` Ludovic Courtès
2016-04-25 19:06 ` Leo Famulari
2016-05-29 16:21 ` Hartmut Goebel
2016-04-21 19:19 ` [PATCH 3/6] gnu: add python-selenium and python2-selenium Hartmut Goebel
2016-04-24 19:19 ` Leo Famulari
2016-04-24 21:36 ` Ludovic Courtès
2016-04-21 19:19 ` [PATCH 4/6] gnu: Add python2-ipaddr, a Python-2-only package Hartmut Goebel
2016-04-21 19:19 ` Hartmut Goebel [this message]
2016-04-21 19:19 ` [PATCH 6/7] gnu: add comment pointing to python-requests-mock in openstack Hartmut Goebel
2016-04-21 19:19 ` [PATCH 6/6] gnu: add python-geoip2 and python2-geoip2 Hartmut Goebel
2016-04-21 20:29 ` Hartmut Goebel
2016-04-21 19:19 ` [PATCH 7/7] " Hartmut Goebel
2016-04-21 20:30 ` Hartmut Goebel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1461266395-2731-6-git-send-email-h.goebel@crazy-compilers.com \
--to=h.goebel@crazy-compilers.com \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).