2018-07-21 01:44:44 +01:00
|
|
|
{lib, buildPythonPackage, fetchPypi
|
2017-09-05 10:16:41 +01:00
|
|
|
, 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";
|
2018-03-25 06:04:25 +01:00
|
|
|
homepage = https://www.maxmind.com/;
|
2017-09-05 10:16:41 +01:00
|
|
|
maintainers = with lib.maintainers; [ jluttine ];
|
|
|
|
license = lib.licenses.lgpl21Plus;
|
|
|
|
};
|
|
|
|
}
|