pythonPackages.http-parser: init at 0.9.0

gstqt5
Martin Weinelt 2020-09-22 02:38:44 +02:00 committed by Jon
parent 479976340a
commit a762bbf7b4
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest
}:
buildPythonPackage rec {
pname = "http-parser";
version = "0.9.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "benoitc";
repo = pname;
rev = version;
sha256 = "05byv1079qi7ypvzm13yf5nc23ink6gr6c5wrhq7fwld4syscy2q";
};
checkInputs = [ pytest ];
checkPhase = "pytest testing/";
pythonImportsCheck = [ "http_parser" ];
meta = with lib; {
description = "HTTP request/response parser for python in C";
homepage = "https://github.com/benoitc/http-parser";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}

View File

@ -2718,6 +2718,8 @@ in {
httplib2 = callPackage ../development/python-modules/httplib2 { };
http-parser = callPackage ../development/python-modules/http-parser { };
httpretty = if isPy3k then
callPackage ../development/python-modules/httpretty { }
else