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-10-31 21:23:58 +0000
committerOrivej Desh <orivej@gmx.fr>2017-10-31 21:47:23 +0000
commitb400e36548aab5a5adc1021f85cdde0054b06904 (patch)
treed237ea519f5348e9d8dcbb0ffcad40f5c21e8cbd /pkgs/development/python-modules/pip-tools
parent6e02ddc926de90cdd07dc6d71580b0c9769d6fa7 (diff)
downloadnixpkgs-b400e36548aab5a5adc1021f85cdde0054b06904.tar
nixpkgs-b400e36548aab5a5adc1021f85cdde0054b06904.tar.gz
nixpkgs-b400e36548aab5a5adc1021f85cdde0054b06904.tar.bz2
nixpkgs-b400e36548aab5a5adc1021f85cdde0054b06904.tar.lz
nixpkgs-b400e36548aab5a5adc1021f85cdde0054b06904.tar.xz
nixpkgs-b400e36548aab5a5adc1021f85cdde0054b06904.tar.zst
nixpkgs-b400e36548aab5a5adc1021f85cdde0054b06904.zip
pip-tools: update tests for 1.9.0 -> 1.10.1
Diffstat (limited to 'pkgs/development/python-modules/pip-tools')
-rw-r--r--pkgs/development/python-modules/pip-tools/default.nix14
1 files changed, 10 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/pip-tools/default.nix b/pkgs/development/python-modules/pip-tools/default.nix
index 2c297d8d719..d916f9b95b1 100644
--- a/pkgs/development/python-modules/pip-tools/default.nix
+++ b/pkgs/development/python-modules/pip-tools/default.nix
@@ -1,5 +1,5 @@
 { stdenv, fetchurl, buildPythonPackage, pip, pytest, click, six, first
-, setuptools_scm, glibcLocales, mock }:
+, setuptools_scm, git, glibcLocales, mock }:
 
 buildPythonPackage rec {
   pname = "pip-tools";
@@ -12,12 +12,18 @@ buildPythonPackage rec {
   };
 
   LC_ALL = "en_US.UTF-8";
-  checkInputs = [ pytest glibcLocales mock ];
+  checkInputs = [ pytest git glibcLocales mock ];
   propagatedBuildInputs = [ pip click six first setuptools_scm ];
 
   checkPhase = ''
-    export HOME=$(mktemp -d)
-    py.test -k "not test_realistic_complex_sub_dependencies" # requires network
+    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 \
+    "
+    py.test -k "$tests_without_network_access"
   '';
 
   meta = with stdenv.lib; {