depot/third_party/nixpkgs/pkgs/development/python-modules/dnspython/default.nix
Default email 8a45d4525b Project import generated by Copybara.
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
2022-03-30 11:31:56 +02:00

47 lines
937 B
Nix

{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, pythonOlder
, setuptools-scm
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "dnspython";
version = "2.2.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
extension = "tar.gz";
sha256 = "1mi6l2n766y1gic3x1swp2jk2nr7wbkb191qinwhddnh6bh534z7";
};
checkInputs = [
pytestCheckHook
];
disabledTests = [
# dns.exception.SyntaxError: protocol not found
"test_misc_good_WKS_text"
] ++ lib.optionals stdenv.isDarwin [
# unable to get local issuer certificate
"test_async"
"test_query"
"test_resolver_override"
];
nativeBuildInputs = [
setuptools-scm
];
pythonImportsCheck = [ "dns" ];
meta = with lib; {
description = "A DNS toolkit for Python";
homepage = "https://www.dnspython.org";
license = with licenses; [ isc ];
maintainers = with maintainers; [ gador ];
};
}