Merge pull request #49158 from alyssais/doh-proxy

doh-proxy: init at 0.0.8
This commit is contained in:
Robert Schütz
2018-10-31 23:16:03 +01:00
committed by GitHub
6 changed files with 110 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
{ lib, buildPythonPackage, isPy3k, fetchPypi, h2, priority }:
buildPythonPackage rec {
pname = "aioh2";
version = "0.2.2";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "03i24wzpw0mrnrpck3w6qy83iigwl7n99sdrndqzxfyrc69b99wd";
};
propagatedBuildInputs = [ h2 priority ];
doCheck = false; # https://github.com/decentfox/aioh2/issues/17
meta = with lib; {
homepage = https://github.com/decentfox/aioh2;
description = "HTTP/2 implementation with hyper-h2 on Python 3 asyncio";
license = licenses.bsd3;
maintainers = [ maintainers.qyliss ];
};
}

View File

@@ -0,0 +1,34 @@
{ lib, fetchpatch, buildPythonPackage, fetchPypi
, aiohttp, pytest, pytestcov, pytest-aiohttp
}:
buildPythonPackage rec {
pname = "aiohttp_remotes";
version = "0.1.2";
src = fetchPypi {
inherit pname version;
sha256 = "43c3f7e1c5ba27f29fb4dbde5d43b900b5b5fc7e37bf7e35e6eaedabaec4a3fc";
};
patches = [
(fetchpatch {
url = https://github.com/aio-libs/aiohttp-remotes/commit/188772abcea038c31dae7d607e487eeed44391bc.patch;
sha256 = "0pb1y4jb8ar1szhnjiyj2sdmdk6z9h6c3wrxw59nv9kr3if5igvs";
})
];
propagatedBuildInputs = [ aiohttp ];
checkInputs = [ pytest pytestcov pytest-aiohttp ];
checkPhase = ''
python -m pytest
'';
meta = with lib; {
homepage = https://github.com/wikibusiness/aiohttp-remotes;
description = "A set of useful tools for aiohttp.web server";
license = licenses.mit;
maintainers = [ maintainers.qyliss ];
};
}

View File

@@ -0,0 +1,23 @@
{ lib, buildPythonPackage, fetchPypi, pytest, hypothesis }:
buildPythonPackage rec {
pname = "priority";
version = "1.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "1gpzn9k9zgks0iw5wdmad9b4dry8haiz2sbp6gycpjkzdld9dhbb";
};
checkInputs = [ pytest hypothesis ];
checkPhase = ''
PYTHONPATH="src:$PYTHONPATH" pytest
'';
meta = with lib; {
homepage = https://python-hyper.org/priority/;
description = "A pure-Python implementation of the HTTP/2 priority tree";
license = licenses.mit;
maintainers = [ maintainers.qyliss ];
};
}