From 2d2f5e1c4d53f6a434e0b7b8fce112b1d5e14992 Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Mon, 13 Nov 2017 03:33:59 +0000 Subject: [PATCH] pip-tools: disable tests that depend on a specific version of "six" They broke after "six: 1.10.0 -> 1.11.0" (5d21308f81e8332e8743a2c807b6406d37642da9). --- .../python-modules/pip-tools/default.nix | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/pip-tools/default.nix b/pkgs/development/python-modules/pip-tools/default.nix index d916f9b95b1d..eed891c6f577 100644 --- a/pkgs/development/python-modules/pip-tools/default.nix +++ b/pkgs/development/python-modules/pip-tools/default.nix @@ -15,15 +15,26 @@ buildPythonPackage rec { checkInputs = [ pytest git glibcLocales mock ]; propagatedBuildInputs = [ pip click six first setuptools_scm ]; + disabledTests = stdenv.lib.concatMapStringsSep " and " (s: "not " + s) [ + # Depend on network tests: + "test_editable_package_vcs" + "test_generate_hashes_all_platforms" + "test_generate_hashes_without_interfering_with_each_other" + "test_realistic_complex_sub_dependencies" + # Expect specific version of "six": + "test_editable_package" + "test_input_file_without_extension" + ]; + checkPhase = '' export HOME=$(mktemp -d) VIRTUAL_ENV=1 tests_without_network_access=" - not test_realistic_complex_sub_dependencies \ - and not test_editable_package_vcs \ - and not test_generate_hashes_all_platforms \ - and not test_generate_hashes_without_interfering_with_each_other \ + not test_realistic_complex_sub_dependencies + and not test_editable_package_vcs + and not test_generate_hashes_all_platforms + and not test_generate_hashes_without_interfering_with_each_other " - py.test -k "$tests_without_network_access" + py.test -k "${disabledTests}" ''; meta = with stdenv.lib; {