linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / maxminddb / default.nix
blobd101cdfd0c2e7185657c6d6b00bb23045ef958c3
1 { stdenv, lib, buildPythonPackage, pythonOlder, pythonAtLeast
2 , fetchPypi
3 , libmaxminddb
4 , ipaddress
5 , mock
6 , nose
7 }:
9 buildPythonPackage rec {
10   version = "2.0.3";
11   pname = "maxminddb";
12   disabled = pythonOlder "3.6";
14   src = fetchPypi {
15     inherit pname version;
16     sha256 = "47e86a084dd814fac88c99ea34ba3278a74bc9de5a25f4b815b608798747c7dc";
17   };
19   buildInputs = [ libmaxminddb ];
21   propagatedBuildInputs = [ ipaddress ];
23   checkInputs = [ nose mock ];
25   # Tests are broken for macOS on python38
26   doCheck = !(stdenv.isDarwin && pythonAtLeast "3.8");
28   meta = with lib; {
29     description = "Reader for the MaxMind DB format";
30     homepage = "https://www.maxmind.com/en/home";
31     license = licenses.asl20;
32     maintainers = with maintainers; [ ];
33   };