aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/virtualenv/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/virtualenv/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/virtualenv/default.nix50
1 files changed, 42 insertions, 8 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/virtualenv/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/virtualenv/default.nix
index 233101728f85..6d2c19d36750 100644
--- a/infra/libkookie/nixpkgs/pkgs/development/python-modules/virtualenv/default.nix
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/virtualenv/default.nix
@@ -1,18 +1,25 @@
{ 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
}:
buildPythonPackage rec {
@@ -47,10 +54,37 @@ buildPythonPackage rec {
./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
+ disabledTestPaths = [
+ "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";
homepage = "http://www.virtualenv.org";
- license = lib.licenses.mit;
- maintainers = with lib.maintainers; [ goibhniu ];
+ license = licenses.mit;
+ maintainers = with maintainers; [ goibhniu ];
};
}