1{lib, buildPythonPackage, fetchPypi, isPy3k, incremental, ipaddress, twisted
2, automat, zope_interface, idna, pyopenssl, service-identity, pytest, mock, lsof
3, geoip, nose}:
4
5buildPythonPackage rec {
6 name = "${pname}-${version}";
7 pname = "GeoIP";
8 version = "1.3.2";
9
10 checkInputs = [ nose ];
11 propagatedBuildInputs = [
12 geoip
13 ];
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "1rphxf3vrn8wywjgr397f49s0s22m83lpwcq45lm0h2p45mdm458";
18 };
19
20 # Tests cannot be run because they require data that isn't included in the
21 # release tarball.
22 checkPhase = "true";
23
24 meta = {
25 description = "MaxMind GeoIP Legacy Database - Python API";
26 homepage = http://www.maxmind.com/;
27 maintainers = with lib.maintainers; [ jluttine ];
28 license = lib.licenses.lgpl21Plus;
29 };
30}