summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/GeoIP
diff options
context:
space:
mode:
authorFrederik Rietdijk <freddyrietdijk@fridh.nl>2017-09-05 11:16:41 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2017-09-06 13:54:10 +0200
commit67651d80bc8baaf09ab91fec8ea423e09107ed8f (patch)
tree216a82ca309b80298039c2038160a22e94a1de6f /pkgs/development/python-modules/GeoIP
parentocropus: 20150316 -> 20170811 (diff)
downloadnixpkgs-67651d80bc8baaf09ab91fec8ea423e09107ed8f.tar.gz
Merge pull request #28884 from FRidh/python-fixes
Python: several fixes
Diffstat (limited to 'pkgs/development/python-modules/GeoIP')
-rw-r--r--pkgs/development/python-modules/GeoIP/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/GeoIP/default.nix b/pkgs/development/python-modules/GeoIP/default.nix
new file mode 100644
index 000000000000..6c4453774ced
--- /dev/null
+++ b/pkgs/development/python-modules/GeoIP/default.nix
@@ -0,0 +1,30 @@
+{lib, buildPythonPackage, fetchPypi, isPy3k, incremental, ipaddress, twisted
+, automat, zope_interface, idna, pyopenssl, service-identity, pytest, mock, lsof
+, geoip, nose}:
+
+buildPythonPackage rec {
+ name = "${pname}-${version}";
+ pname = "GeoIP";
+ version = "1.3.2";
+
+ checkInputs = [ nose ];
+ propagatedBuildInputs = [
+ geoip
+ ];
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "1rphxf3vrn8wywjgr397f49s0s22m83lpwcq45lm0h2p45mdm458";
+ };
+
+ # Tests cannot be run because they require data that isn't included in the
+ # release tarball.
+ checkPhase = "true";
+
+ meta = {
+ description = "MaxMind GeoIP Legacy Database - Python API";
+ homepage = http://www.maxmind.com/;
+ maintainers = with lib.maintainers; [ jluttine ];
+ license = lib.licenses.lgpl21Plus;
+ };
+}