devpi-client: 3.1.0 -> 4.1.0, fix tests (#47142)

This commit is contained in:
xeji 2018-09-22 18:07:00 +02:00 committed by GitHub
parent 4eebe205fe
commit c770699524
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,28 +9,28 @@
pythonPackages.buildPythonApplication rec {
name = "${pname}-${version}";
pname = "devpi-client";
version = "3.1.0";
version = "4.1.0";
src = pythonPackages.fetchPypi {
inherit pname version;
sha256 = "0w47x3lkafcg9ijlaxllmq4886nsc91w49ck1cd7vn2gafkwjkgr";
sha256 = "0f5jkvxx9fl8v5vwbwmplqhjsdfgiib7j3zvn0zxd8krvi2s38fq";
};
checkInputs = with pythonPackages; [
pytest webtest mock
pytest pytestflakes webtest mock
devpi-server tox
sphinx wheel git mercurial detox
setuptools
];
checkPhase = ''
export PATH=$PATH:$out/bin
export HOME=$TMPDIR # fix tests failing in sandbox due to "/homeless-shelter"
# setuptools do not get propagated into the tox call (cannot import setuptools)
rm testing/test_test.py
# test_pypi_index_attributes tries to connect to upstream pypi
# test_download_release_error is fixed in the next release
py.test -k 'not test_pypi_index_attributes and not test_download_release_error' testing
py.test -k 'not test_pypi_index_attributes' testing
'';
LC_ALL = "en_US.UTF-8";