1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy27
5}:
6
7buildPythonPackage rec {
8 pname = "httptools";
9 version = "0.5.0";
10 disabled = isPy27;
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "sha256-KVh0hhwXP5EBlgu6MyQpu3ftTc2M31zumSLrAOT2vAk=";
15 };
16
17 # tests are not included in pypi tarball
18 doCheck = false;
19
20 pythonImportsCheck = [ "httptools" ];
21
22 meta = with lib; {
23 description = "A collection of framework independent HTTP protocol utils";
24 homepage = "https://github.com/MagicStack/httptools";
25 license = licenses.mit;
26 maintainers = [ maintainers.costrouc ];
27 };
28}