summary refs log tree commit diff
path: root/pkgs/servers/dns/doh-proxy/default.nix
blob: 8128ec6f04d47e7dc490649c8e24c7a8ae39655a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib, python3Packages }:

with python3Packages;
buildPythonApplication rec {
  pname = "doh-proxy";
  version = "0.0.9";

  src = python3Packages.fetchPypi {
    inherit pname version;
    sha256 = "1fxzxipzdvk75yrcr78mpdz8lwpisba67lk4jcwxdnkv6997dwfp";
  };

  nativeBuildInputs = [ pytest-runner flake8];

  propagatedBuildInputs = [
    aioh2
    dnspython
    aiohttp-remotes
  ];

  checkInputs = [
    asynctest
    unittest-data-provider
    pytest
    pytest-cov
    pytest-aiohttp
  ];

  # attempts to resolve address
  checkPhase = ''
    pytest -k 'not servers'
  '';

  meta = with lib; {
    homepage = "https://facebookexperimental.github.io/doh-proxy/";
    description = "A proof of concept DNS-Over-HTTPS proxy";
    license = licenses.bsd3;
    maintainers = [ maintainers.qyliss ];
  };
}