1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 11:32:03 +00:00
nixpkgs/pkgs/servers/dns/doh-proxy/default.nix

41 lines
808 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
};
2019-08-05 22:05:49 +01: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 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 ];
};
}