diff options
| author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2020-09-22 02:38:44 +0200 |
|---|---|---|
| committer | Jon <jonringer@users.noreply.github.com> | 2020-09-21 23:14:57 -0700 |
| commit | a762bbf7b4abe046dedad82894f7bfa7a106e3fc (patch) | |
| tree | 7a1e23daffdb3dc80a5eafc06c87a2e18d019222 | |
| parent | duf: init at 0.1.0 (#98396) (diff) | |
| download | nixpkgs-a762bbf7b4abe046dedad82894f7bfa7a106e3fc.tar.gz | |
pythonPackages.http-parser: init at 0.9.0
| -rw-r--r-- | pkgs/development/python-modules/http-parser/default.nix | 31 | ||||
| -rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/http-parser/default.nix b/pkgs/development/python-modules/http-parser/default.nix new file mode 100644 index 000000000000..d98785576f48 --- /dev/null +++ b/pkgs/development/python-modules/http-parser/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3eb4f97401c4..9906f9a0c5be 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 |
