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