depot/third_party/nixpkgs/pkgs/development/python-modules/geoip/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

30 lines
703 B
Nix

{lib, buildPythonPackage, fetchPypi
, libgeoip, nose}:
buildPythonPackage rec {
pname = "geoip";
version = "1.3.2";
format = "setuptools";
nativeCheckInputs = [ nose ];
propagatedBuildInputs = [
libgeoip
];
src = fetchPypi {
pname = "GeoIP";
inherit 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;
};
}