summary refs log tree commit diff
path: root/pkgs/development/python-modules/pip-tools
diff options
context:
space:
mode:
authorOrivej Desh <orivej@gmx.fr>2017-11-13 03:33:59 +0000
committerOrivej Desh <orivej@gmx.fr>2017-11-13 03:35:26 +0000
commit2d2f5e1c4d53f6a434e0b7b8fce112b1d5e14992 (patch)
tree74e312b698f602aa355fb8a12049dd70410a8407 /pkgs/development/python-modules/pip-tools
parent10d02b7c43d01b19d5ce45162962d20dd05e473b (diff)
downloadnixlib-2d2f5e1c4d53f6a434e0b7b8fce112b1d5e14992.tar
nixlib-2d2f5e1c4d53f6a434e0b7b8fce112b1d5e14992.tar.gz
nixlib-2d2f5e1c4d53f6a434e0b7b8fce112b1d5e14992.tar.bz2
nixlib-2d2f5e1c4d53f6a434e0b7b8fce112b1d5e14992.tar.lz
nixlib-2d2f5e1c4d53f6a434e0b7b8fce112b1d5e14992.tar.xz
nixlib-2d2f5e1c4d53f6a434e0b7b8fce112b1d5e14992.tar.zst
nixlib-2d2f5e1c4d53f6a434e0b7b8fce112b1d5e14992.zip
pip-tools: disable tests that depend on a specific version of "six"
They broke after "six: 1.10.0 -> 1.11.0" (5d21308f81e8332e8743a2c807b6406d37642da9).
Diffstat (limited to 'pkgs/development/python-modules/pip-tools')
-rw-r--r--pkgs/development/python-modules/pip-tools/default.nix21
1 files 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; {