mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
pythonPackages.httpcore: init at 0.10.2
This commit is contained in:
parent
eef56567c4
commit
e98facbda3
34
pkgs/development/python-modules/httpcore/default.nix
Normal file
34
pkgs/development/python-modules/httpcore/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -2683,6 +2683,8 @@ in {
|
|||
|
||||
httpbin = callPackage ../development/python-modules/httpbin { };
|
||||
|
||||
httpcore = callPackage ../development/python-modules/httpcore { };
|
||||
|
||||
http-ece = callPackage ../development/python-modules/http-ece { };
|
||||
|
||||
httplib2 = callPackage ../development/python-modules/httplib2 { };
|
||||
|
|
Loading…
Reference in a new issue