Merge pull request #110474 from dotlambda/virtualenv-20.3.1

[staging] pythonPackages.virtualenv: 20.2.1 -> 20.3.1

authored by

Robert Schütz and committed by
GitHub
d98e2562 f92395cf

+61 -28
+2 -4
pkgs/development/python-modules/freezegun/0.3.nix
··· 11 12 buildPythonPackage rec { 13 pname = "freezegun"; 14 - version = "0.3.5"; 15 16 src = fetchPypi { 17 inherit pname version; 18 - sha256 = "02ly89wwn0plcw8clkkzvxaw6zlpm8qyqpm9x2mfw4a0vppb4ngf"; 19 }; 20 21 propagatedBuildInputs = [ dateutil six ]; 22 checkInputs = [ mock nose pytest ]; 23 - # contains python3 specific code 24 - doCheck = !isPy27; 25 26 meta = with lib; { 27 description = "FreezeGun: Let your Python tests travel through time";
··· 11 12 buildPythonPackage rec { 13 pname = "freezegun"; 14 + version = "0.3.15"; 15 16 src = fetchPypi { 17 inherit pname version; 18 + sha256 = "e2062f2c7f95cc276a834c22f1a17179467176b624cc6f936e8bc3be5535ad1b"; 19 }; 20 21 propagatedBuildInputs = [ dateutil six ]; 22 checkInputs = [ mock nose pytest ]; 23 24 meta = with lib; { 25 description = "FreezeGun: Let your Python tests travel through time";
+5 -11
pkgs/development/python-modules/freezegun/default.nix
··· 2 , buildPythonPackage 3 , pythonOlder 4 , fetchPypi 5 - , isPy27 6 , dateutil 7 - , six 8 - , mock 9 - , nose 10 - , pytest 11 }: 12 13 buildPythonPackage rec { 14 pname = "freezegun"; 15 - version = "1.0.0"; 16 disabled = pythonOlder "3.5"; 17 18 src = fetchPypi { 19 inherit pname version; 20 - sha256 = "1cf08e441f913ff5e59b19cc065a8faa9dd1ddc442eaf0375294f344581a0643"; 21 }; 22 23 - propagatedBuildInputs = [ dateutil six ]; 24 - checkInputs = [ mock nose pytest ]; 25 - # contains python3 specific code 26 - doCheck = !isPy27; 27 28 meta = with lib; { 29 description = "FreezeGun: Let your Python tests travel through time";
··· 2 , buildPythonPackage 3 , pythonOlder 4 , fetchPypi 5 , dateutil 6 + , pytestCheckHook 7 }: 8 9 buildPythonPackage rec { 10 pname = "freezegun"; 11 + version = "1.1.0"; 12 disabled = pythonOlder "3.5"; 13 14 src = fetchPypi { 15 inherit pname version; 16 + sha256 = "177f9dd59861d871e27a484c3332f35a6e3f5d14626f2bf91be37891f18927f3"; 17 }; 18 19 + propagatedBuildInputs = [ dateutil ]; 20 + checkInputs = [ pytestCheckHook ]; 21 22 meta = with lib; { 23 description = "FreezeGun: Let your Python tests travel through time";
+12 -5
pkgs/development/python-modules/pytest-freezegun/default.nix
··· 1 { lib 2 , buildPythonPackage 3 - , fetchPypi 4 , freezegun 5 , pytest 6 }: 7 8 buildPythonPackage rec { 9 pname = "pytest-freezegun"; 10 version = "0.4.2"; 11 12 - src = fetchPypi { 13 - inherit pname version; 14 - extension = "zip"; 15 - sha256 = "19c82d5633751bf3ec92caa481fb5cffaac1787bd485f0df6436fd6242176949"; 16 }; 17 18 propagatedBuildInputs = [ 19 freezegun 20 pytest 21 ]; 22 23 meta = with lib; {
··· 1 { lib 2 , buildPythonPackage 3 + , isPy27 4 + , fetchFromGitHub 5 , freezegun 6 , pytest 7 + , pytestCheckHook 8 }: 9 10 buildPythonPackage rec { 11 pname = "pytest-freezegun"; 12 version = "0.4.2"; 13 14 + src = fetchFromGitHub { 15 + owner = "ktosiek"; 16 + repo = "pytest-freezegun"; 17 + rev = version; 18 + sha256 = "10c4pbh03b4s1q8cjd75lr0fvyf9id0zmdk29566qqsmaz28npas"; 19 }; 20 21 propagatedBuildInputs = [ 22 freezegun 23 pytest 24 + ]; 25 + 26 + checkInputs = [ 27 + pytestCheckHook 28 ]; 29 30 meta = with lib; {
+42 -8
pkgs/development/python-modules/virtualenv/default.nix
··· 1 { buildPythonPackage 2 - , fetchPypi 3 - , lib 4 - , stdenv 5 - , pythonOlder 6 - , isPy27 7 , appdirs 8 , contextlib2 9 , distlib 10 , filelock 11 , importlib-metadata 12 , importlib-resources 13 , pathlib2 14 , setuptools_scm 15 , six 16 }: 17 18 buildPythonPackage rec { ··· 47 ./0001-Check-base_prefix-and-base_exec_prefix-for-Python-2.patch 48 ]; 49 50 - meta = { 51 description = "A tool to create isolated Python environments"; 52 homepage = "http://www.virtualenv.org"; 53 - license = lib.licenses.mit; 54 - maintainers = with lib.maintainers; [ goibhniu ]; 55 }; 56 }
··· 1 { buildPythonPackage 2 , appdirs 3 , contextlib2 4 + , cython 5 , distlib 6 + , fetchPypi 7 , filelock 8 + , fish 9 + , flaky 10 , importlib-metadata 11 , importlib-resources 12 + , isPy27 13 + , lib 14 , pathlib2 15 + , pytest-freezegun 16 + , pytest-mock 17 + , pytest-timeout 18 + , pytestCheckHook 19 + , pythonOlder 20 , setuptools_scm 21 , six 22 + , stdenv 23 }: 24 25 buildPythonPackage rec { ··· 54 ./0001-Check-base_prefix-and-base_exec_prefix-for-Python-2.patch 55 ]; 56 57 + checkInputs = [ 58 + cython 59 + fish 60 + flaky 61 + pytest-freezegun 62 + pytest-mock 63 + pytest-timeout 64 + pytestCheckHook 65 + ]; 66 + 67 + preCheck = '' 68 + export HOME=$(mktemp -d) 69 + ''; 70 + 71 + # Ignore tests which require network access 72 + disabledTestFiles = [ 73 + "tests/unit/create/test_creator.py" 74 + "tests/unit/seed/embed/test_bootstrap_link_via_app_data.py" 75 + ]; 76 + 77 + disabledTests = [ 78 + "test_can_build_c_extensions" 79 + "test_xonsh" # imports xonsh, which is not in pythonPackages 80 + ]; 81 + 82 + pythonImportsCheck = [ "virtualenv" ]; 83 + 84 + meta = with lib; { 85 description = "A tool to create isolated Python environments"; 86 homepage = "http://www.virtualenv.org"; 87 + license = licenses.mit; 88 + maintainers = with maintainers; [ goibhniu ]; 89 }; 90 }