diff options
author | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2017-09-05 11:16:41 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2017-09-06 13:54:10 +0200 |
commit | 67651d80bc8baaf09ab91fec8ea423e09107ed8f (patch) | |
tree | 216a82ca309b80298039c2038160a22e94a1de6f /pkgs/development/python-modules/GeoIP | |
parent | 036bafe0b94fb99ee9d1eb3d2fb902293a9f39a6 (diff) | |
download | nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.tar nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.tar.gz nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.tar.bz2 nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.tar.lz nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.tar.xz nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.tar.zst nixlib-67651d80bc8baaf09ab91fec8ea423e09107ed8f.zip |
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.nix | 30 |
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; + }; +} |