@@ -1,4 +1,6 @@
1−{ buildPythonPackage, lib, fetchPypi
1+{ stdenv, lib, buildPythonPackage, pythonAtLeast
2+, fetchPypi
3+, libmaxminddb
24, ipaddress
35, mock
46, nose
@@ -13,10 +15,15 @@ buildPythonPackage rec {
1315 sha256 = "f4d28823d9ca23323d113dc7af8db2087aa4f657fafc64ff8f7a8afda871425b";
1416 };
1517
18+ buildInputs = [ libmaxminddb ];
19+
1620 propagatedBuildInputs = [ ipaddress ];
1721
1822 checkInputs = [ nose mock ];
1923
24+ # Tests are broken for macOS on python38
25+ doCheck = !(stdenv.isDarwin && pythonAtLeast "3.8");
26+
2027 meta = with lib; {
2128 description = "Reader for the MaxMind DB format";
2229 homepage = "https://www.maxmind.com/en/home";