Merge pull request #31061 from orivej/pip-tools

pip-tools: update tests for 1.9.0 -> 1.10.1
This commit is contained in:
Orivej Desh 2017-10-31 23:47:05 +00:00 committed by GitHub
commit b51aa7b6d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 4 deletions

View File

@ -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; {

View File

@ -15114,6 +15114,7 @@ in {
};
pip-tools = callPackage ../development/python-modules/pip-tools {
git = pkgs.gitMinimal;
glibcLocales = pkgs.glibcLocales;
};