about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/http-parser/default.nix
blob: d98785576f4858d57f4f0c6059dfc1eed93db60a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 ];
  };
}