3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/dns/doh-proxy/default.nix

41 lines
810 B
Nix
Raw Normal View History

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