Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 738 B view raw
1{ buildPythonPackage, lib, fetchPypi, isPy27 2, aiohttp 3, maxminddb 4, mock 5, mocket 6, requests 7, requests-mock 8}: 9 10buildPythonPackage rec { 11 version = "4.0.2"; 12 pname = "geoip2"; 13 disabled = isPy27; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "4afb5d899eac08444e461239c8afb165c90234adc0b5dc952792d9da74c9091b"; 18 }; 19 20 patchPhase = '' 21 substituteInPlace requirements.txt --replace "requests>=2.24.0,<3.0.0" "requests" 22 ''; 23 24 propagatedBuildInputs = [ aiohttp requests maxminddb ]; 25 26 checkInputs = [ mocket requests-mock ]; 27 28 meta = with lib; { 29 description = "MaxMind GeoIP2 API"; 30 homepage = "https://www.maxmind.com/en/home"; 31 license = licenses.asl20; 32 maintainers = with maintainers; [ ]; 33 }; 34}