02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
31 lines
703 B
Nix
31 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;
|
|
};
|
|
}
|