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

41 lines
810 B
Nix
Raw Permalink Normal View History

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