nixpkgs-suyu/pkgs/servers/dns/doh-proxy/default.nix

41 lines
808 B
Nix
Raw Normal View History

2018-10-26 16:31:35 +02:00
{ lib, python3Packages }:
2019-08-05 23:05:49 +02:00
with python3Packages;
buildPythonApplication rec {
2018-10-26 16:31:35 +02:00
pname = "doh-proxy";
2019-08-05 23:05:49 +02:00
version = "0.0.9";
2018-10-26 16:31:35 +02:00
src = python3Packages.fetchPypi {
inherit pname version;
2019-08-05 23:05:49 +02:00
sha256 = "1fxzxipzdvk75yrcr78mpdz8lwpisba67lk4jcwxdnkv6997dwfp";
2018-10-26 16:31:35 +02:00
};
2019-08-05 23:05:49 +02:00
nativeBuildInputs = [ pytestrunner flake8];
propagatedBuildInputs = [
aioh2
dnspython
aiohttp-remotes
];
checkInputs = [
asynctest
unittest-data-provider
pytest
pytestcov
pytest-aiohttp
];
# attempts to resolve address
checkPhase = ''
pytest -k 'not servers'
'';
2018-10-26 16:31:35 +02:00
meta = with lib; {
homepage = "https://facebookexperimental.github.io/doh-proxy/";
2018-10-26 16:31:35 +02:00
description = "A proof of concept DNS-Over-HTTPS proxy";
license = licenses.bsd3;
maintainers = [ maintainers.qyliss ];
};
}