aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/httpcore/default.nix
blob: 9ac9b76d2e362670c6fd10cd804582b958f3827b (plain)
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
32
33
34
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, isPy27
, h11
, sniffio
}:

buildPythonPackage rec {
  pname = "httpcore";
  version = "0.10.2";
  disabled = isPy27;

  src = fetchFromGitHub {
    owner = "encode";
    repo = pname;
    rev = version;
    sha256 = "00gn8nfv814rg6fj7xv97mrra3fvx6fzjcgx9y051ihm6hxljdsi";
  };

  propagatedBuildInputs = [ h11 sniffio ];

  # tests require pythonic access to mitmproxy, which isn't (yet?) packaged as
  # a pythonPackage.
  doCheck = false;
  pythonImportsCheck = [ "httpcore" ];

  meta = with stdenv.lib; {
    description = "A minimal HTTP client";
    homepage = "https://github.com/encode/httpcore";
    license = licenses.bsd3;
    maintainers = [ maintainers.ris ];
  };
}