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
|
|
|
};
|
|
|
|
|
2021-07-20 22:07:53 +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
|
2021-07-20 21:42:24 +01:00
|
|
|
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; {
|
2020-04-01 02:11:51 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|