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