Merge pull request #49158 from alyssais/doh-proxy
doh-proxy: init at 0.0.8
This commit is contained in:
commit
f6107effa4
23
pkgs/development/python-modules/aioh2/default.nix
Normal file
23
pkgs/development/python-modules/aioh2/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
34
pkgs/development/python-modules/aiohttp-remotes/default.nix
Normal file
34
pkgs/development/python-modules/aiohttp-remotes/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
23
pkgs/development/python-modules/priority/default.nix
Normal file
23
pkgs/development/python-modules/priority/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
22
pkgs/servers/dns/doh-proxy/default.nix
Normal file
22
pkgs/servers/dns/doh-proxy/default.nix
Normal file
@ -0,0 +1,22 @@
|
||||
{ lib, python3Packages }:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "doh-proxy";
|
||||
version = "0.0.8";
|
||||
|
||||
src = python3Packages.fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0mfl84mcklby6cnsw29kpcxj7mh1cx5yw6mjs4sidr1psyni7x6c";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3Packages;
|
||||
[ aioh2 dnspython aiohttp-remotes pytestrunner flake8 ];
|
||||
doCheck = false; # Trouble packaging unittest-data-provider
|
||||
|
||||
meta = with lib; {
|
||||
homepage = https://facebookexperimental.github.io/doh-proxy/;
|
||||
description = "A proof of concept DNS-Over-HTTPS proxy";
|
||||
license = licenses.bsd3;
|
||||
maintainers = [ maintainers.qyliss ];
|
||||
};
|
||||
}
|
@ -13195,6 +13195,8 @@ with pkgs;
|
||||
|
||||
dex-oidc = callPackage ../servers/dex { };
|
||||
|
||||
doh-proxy = callPackage ../servers/dns/doh-proxy { };
|
||||
|
||||
dgraph = callPackage ../servers/dgraph { };
|
||||
|
||||
dico = callPackage ../servers/dico { };
|
||||
|
@ -708,12 +708,16 @@ in {
|
||||
|
||||
aiofiles = callPackage ../development/python-modules/aiofiles { };
|
||||
|
||||
aioh2 = callPackage ../development/python-modules/aioh2 { };
|
||||
|
||||
aiohttp = callPackage ../development/python-modules/aiohttp { };
|
||||
|
||||
aiohttp-cors = callPackage ../development/python-modules/aiohttp/cors.nix { };
|
||||
|
||||
aiohttp-jinja2 = callPackage ../development/python-modules/aiohttp-jinja2 { };
|
||||
|
||||
aiohttp-remotes = callPackage ../development/python-modules/aiohttp-remotes { };
|
||||
|
||||
aioprocessing = callPackage ../development/python-modules/aioprocessing { };
|
||||
|
||||
ajpy = callPackage ../development/python-modules/ajpy { };
|
||||
@ -1858,6 +1862,8 @@ in {
|
||||
|
||||
poyo = callPackage ../development/python-modules/poyo { };
|
||||
|
||||
priority = callPackage ../development/python-modules/priority { };
|
||||
|
||||
prov = callPackage ../development/python-modules/prov { };
|
||||
|
||||
pudb = callPackage ../development/python-modules/pudb { };
|
||||
|
Loading…
Reference in New Issue
Block a user