pythonPackages.http-parser: init at 0.9.0
This commit is contained in:
parent
479976340a
commit
a762bbf7b4
31
pkgs/development/python-modules/http-parser/default.nix
Normal file
31
pkgs/development/python-modules/http-parser/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -2718,6 +2718,8 @@ in {
|
||||||
|
|
||||||
httplib2 = callPackage ../development/python-modules/httplib2 { };
|
httplib2 = callPackage ../development/python-modules/httplib2 { };
|
||||||
|
|
||||||
|
http-parser = callPackage ../development/python-modules/http-parser { };
|
||||||
|
|
||||||
httpretty = if isPy3k then
|
httpretty = if isPy3k then
|
||||||
callPackage ../development/python-modules/httpretty { }
|
callPackage ../development/python-modules/httpretty { }
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue