blob: 6f66b3d67e1f8cb9c1e5d5dc9b58d3502e39f6d9 (
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
29
30
31
32
33
34
35
36
37
|
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, libgeoip
}:
buildPythonPackage rec {
pname = "geoip";
version = "1.3.2";
pyproject = true;
src = fetchPypi {
pname = "GeoIP";
inherit version;
sha256 = "1rphxf3vrn8wywjgr397f49s0s22m83lpwcq45lm0h2p45mdm458";
};
build-system = [
setuptools
];
propagatedBuildInputs = [
libgeoip
];
# Tests cannot be run because they require data that isn't included in the
# release tarball.
doCheck = false;
meta = {
description = "MaxMind GeoIP Legacy Database - Python API";
homepage = "https://www.maxmind.com/";
maintainers = with lib.maintainers; [ jluttine ];
license = lib.licenses.lgpl21Plus;
};
}
|