summary refs log tree commit diff
path: root/pkgs/development/python-modules/GeoIP/default.nix
blob: 0e4b66fe962f9514da251a6fcf9694bd7365b564 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{lib, buildPythonPackage, fetchPypi
, geoip, nose}:

buildPythonPackage rec {
  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 = "https://www.maxmind.com/";
    maintainers = with lib.maintainers; [ jluttine ];
    license = lib.licenses.lgpl21Plus;
  };
}