Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 34 lines 766 B view raw
1{ stdenv, lib, buildPythonPackage, pythonOlder, pythonAtLeast 2, fetchPypi 3, libmaxminddb 4, ipaddress 5, mock 6, nose 7}: 8 9buildPythonPackage rec { 10 version = "2.0.3"; 11 pname = "maxminddb"; 12 disabled = pythonOlder "3.6"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "47e86a084dd814fac88c99ea34ba3278a74bc9de5a25f4b815b608798747c7dc"; 17 }; 18 19 buildInputs = [ libmaxminddb ]; 20 21 propagatedBuildInputs = [ ipaddress ]; 22 23 checkInputs = [ nose mock ]; 24 25 # Tests are broken for macOS on python38 26 doCheck = !(stdenv.isDarwin && pythonAtLeast "3.8"); 27 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 }; 34}