1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 fetchpatch, 6}: 7 8buildPythonPackage rec { 9 pname = "keepalive"; 10 version = "0.5"; 11 format = "setuptools"; 12 13 src = fetchPypi { 14 inherit pname version; 15 hash = "sha256-PGuW+QYqWnYCLwydQenvVVLYCxyt1PzMG/jxg7odHsE="; 16 }; 17 18 patches = [ 19 # https://github.com/wikier/keepalive/pull/11 20 (fetchpatch { 21 name = "remove-use_2to3.patch"; 22 url = "https://github.com/wikier/keepalive/commit/64393f6c5bf9c69d946b584fd664dd4df72604e6.patch"; 23 hash = "sha256-/G1eEt8a4Qz7x5oQnDZZD/PIQwo9+oPZoy9OrXGHvR4="; 24 excludes = [ "README.md" ]; 25 }) 26 ]; 27 28 # No tests included 29 doCheck = false; 30 31 meta = with lib; { 32 description = "HTTP handler for `urllib` that supports HTTP 1.1 and keepalive"; 33 homepage = "https://github.com/wikier/keepalive"; 34 license = licenses.lgpl21Plus; 35 }; 36}