From 135a14fa45de3de39dc97336ab7f15fc442451dc Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Tue, 19 Jan 2021 11:11:02 -0800 Subject: [PATCH] Revert "python3Packages.virtualenv: enable tests" This reverts commit c030d1b85bbcc2772ea432b713d699710c8b537e. --- .../python-modules/virtualenv/default.nix | 47 ++++--------------- 1 file changed, 8 insertions(+), 39 deletions(-) diff --git a/pkgs/development/python-modules/virtualenv/default.nix b/pkgs/development/python-modules/virtualenv/default.nix index 6869d16d5a46..215cc853101c 100644 --- a/pkgs/development/python-modules/virtualenv/default.nix +++ b/pkgs/development/python-modules/virtualenv/default.nix @@ -1,26 +1,18 @@ { buildPythonPackage +, fetchPypi +, lib +, stdenv +, pythonOlder +, isPy27 , appdirs , contextlib2 -, cython , distlib -, fetchPypi , filelock -, fish -, flaky , importlib-metadata , importlib-resources -, isPy27 -, lib , pathlib2 -, pytest-freezegun -, pytest-mock -, pytest-timeout -, pytestCheckHook -, pythonOlder , setuptools_scm , six -, stdenv -, xonsh }: buildPythonPackage rec { @@ -55,33 +47,10 @@ buildPythonPackage rec { ./0001-Check-base_prefix-and-base_exec_prefix-for-Python-2.patch ]; - checkInputs = [ - cython - fish - flaky - pytest-freezegun - pytest-mock - pytest-timeout - pytestCheckHook - ] ++ lib.optionals (pythonOlder "3.9") [ - xonsh - ]; - - preCheck = "export HOME=$(mktemp -d)"; - - # Ignore tests which requires network access - pytestFlagsArray = [ - "--ignore tests/unit/create/test_creator.py" - "--ignore tests/unit/seed/embed/test_bootstrap_link_via_app_data.py" - ]; - - disabledTests = [ "test_can_build_c_extensions" ]; - pythonImportsCheck = [ "virtualenv" ]; - - meta = with lib; { + meta = { description = "A tool to create isolated Python environments"; homepage = "http://www.virtualenv.org"; - license = licenses.mit; - maintainers = with maintainers; [ goibhniu ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ goibhniu ]; }; }