python3Packages.virtualenv: enable tests
This commit is contained in:
parent
090664f85c
commit
e975b75082
@ -1,18 +1,25 @@
|
|||||||
{ buildPythonPackage
|
{ buildPythonPackage
|
||||||
, fetchPypi
|
|
||||||
, lib
|
|
||||||
, stdenv
|
|
||||||
, pythonOlder
|
|
||||||
, isPy27
|
|
||||||
, appdirs
|
, appdirs
|
||||||
, contextlib2
|
, contextlib2
|
||||||
|
, cython
|
||||||
, distlib
|
, distlib
|
||||||
|
, fetchPypi
|
||||||
, filelock
|
, filelock
|
||||||
|
, fish
|
||||||
|
, flaky
|
||||||
, importlib-metadata
|
, importlib-metadata
|
||||||
, importlib-resources
|
, importlib-resources
|
||||||
|
, isPy27
|
||||||
|
, lib
|
||||||
, pathlib2
|
, pathlib2
|
||||||
|
, pytest-freezegun
|
||||||
|
, pytest-mock
|
||||||
|
, pytest-timeout
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
, setuptools_scm
|
, setuptools_scm
|
||||||
, six
|
, six
|
||||||
|
, stdenv
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -47,10 +54,37 @@ buildPythonPackage rec {
|
|||||||
./0001-Check-base_prefix-and-base_exec_prefix-for-Python-2.patch
|
./0001-Check-base_prefix-and-base_exec_prefix-for-Python-2.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = {
|
checkInputs = [
|
||||||
|
cython
|
||||||
|
fish
|
||||||
|
flaky
|
||||||
|
pytest-freezegun
|
||||||
|
pytest-mock
|
||||||
|
pytest-timeout
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
export HOME=$(mktemp -d)
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Ignore tests which require network access
|
||||||
|
disabledTestFiles = [
|
||||||
|
"tests/unit/create/test_creator.py"
|
||||||
|
"tests/unit/seed/embed/test_bootstrap_link_via_app_data.py"
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
"test_can_build_c_extensions"
|
||||||
|
"test_xonsh" # imports xonsh, which is not in pythonPackages
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "virtualenv" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
description = "A tool to create isolated Python environments";
|
description = "A tool to create isolated Python environments";
|
||||||
homepage = "http://www.virtualenv.org";
|
homepage = "http://www.virtualenv.org";
|
||||||
license = lib.licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with lib.maintainers; [ goibhniu ];
|
maintainers = with maintainers; [ goibhniu ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user