From 34e037b6360641928afd16b3ee4110c04d07b326 Mon Sep 17 00:00:00 2001 From: "Robert T. McGibbon" Date: Fri, 7 May 2021 18:22:35 -0400 Subject: [PATCH] python3Packages.tld: fix on darwin --- pkgs/development/python-modules/tld/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/tld/default.nix b/pkgs/development/python-modules/tld/default.nix index 13f23edaad15..ed601a2620c8 100644 --- a/pkgs/development/python-modules/tld/default.nix +++ b/pkgs/development/python-modules/tld/default.nix @@ -26,6 +26,12 @@ buildPythonPackage rec { tox ]; + # these tests require network access, but disabledTestPaths doesn't work. + # the file needs to be `import`ed by another python test file, so it + # can't simply be removed. + preCheck = '' + echo > src/tld/tests/test_commands.py + ''; pythonImportsCheck = [ "tld" ]; meta = with lib; {