diff options
author | Robert Scott <code@humanleg.org.uk> | 2020-08-27 22:36:12 +0100 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-09-02 15:07:05 -0700 |
commit | e98facbda3249fd112f66addb4816ea05ea223b0 (patch) | |
tree | a8d3f014e46391391c209a18c0fc2e90c1e76085 /pkgs/development/python-modules/httpcore | |
parent | eef56567c4808729d918384ff671a88c8dba0630 (diff) |
pythonPackages.httpcore: init at 0.10.2
Diffstat (limited to 'pkgs/development/python-modules/httpcore')
-rw-r--r-- | pkgs/development/python-modules/httpcore/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/httpcore/default.nix b/pkgs/development/python-modules/httpcore/default.nix new file mode 100644 index 0000000000000..9ac9b76d2e362 --- /dev/null +++ b/pkgs/development/python-modules/httpcore/default.nix @@ -0,0 +1,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 ]; + }; +} |