Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 62 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263{ lib, aioquic, buildPythonPackage, cryptography, fetchPypi, h2, httpcore, httpx, idna, hatchling, pytestCheckHook, trio,}:
buildPythonPackage rec { pname = "dnspython"; version = "2.7.0"; pyproject = true;
src = fetchPypi { inherit pname version; hash = "sha256-zpxDLtoNyRz2GKXO3xpOFCZRGWu80sgOie1akH5c+vE="; };
build-system = [ hatchling ];
optional-dependencies = { doh = [ httpx h2 httpcore ]; idna = [ idna ]; dnssec = [ cryptography ]; trio = [ trio ]; doq = [ aioquic ]; };
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [ # dns.exception.SyntaxError: protocol not found "test_misc_good_WKS_text" ];
# disable network on all builds (including darwin) # see https://github.com/NixOS/nixpkgs/issues/356803 preCheck = '' export NO_INTERNET=1 '';
pythonImportsCheck = [ "dns" ];
meta = { description = "DNS toolkit for Python"; homepage = "https://www.dnspython.org"; changelog = "https://github.com/rthalley/dnspython/blob/v${version}/doc/whatsnew.rst"; license = lib.licenses.isc; maintainers = with lib.maintainers; [ gador ]; };}