about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/dns/doh-proxy/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/servers/dns/doh-proxy/default.nix')
-rw-r--r--nixpkgs/pkgs/servers/dns/doh-proxy/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/dns/doh-proxy/default.nix b/nixpkgs/pkgs/servers/dns/doh-proxy/default.nix
new file mode 100644
index 000000000000..e65021599ad4
--- /dev/null
+++ b/nixpkgs/pkgs/servers/dns/doh-proxy/default.nix
@@ -0,0 +1,40 @@
+{ lib, python3Packages }:
+
+with python3Packages;
+buildPythonApplication rec {
+  pname = "doh-proxy";
+  version = "0.0.9";
+
+  src = python3Packages.fetchPypi {
+    inherit pname version;
+    sha256 = "1fxzxipzdvk75yrcr78mpdz8lwpisba67lk4jcwxdnkv6997dwfp";
+  };
+
+  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'
+  '';
+
+  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 ];
+  };
+}