Merge pull request #110474 from dotlambda/virtualenv-20.3.1

[staging] pythonPackages.virtualenv: 20.2.1 -> 20.3.1
This commit is contained in:
Robert Schütz 2021-01-31 09:30:21 +01:00 committed by GitHub
commit d98e25624f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 61 additions and 28 deletions

View file

@ -11,17 +11,15 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "freezegun"; pname = "freezegun";
version = "0.3.5"; version = "0.3.15";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "02ly89wwn0plcw8clkkzvxaw6zlpm8qyqpm9x2mfw4a0vppb4ngf"; sha256 = "e2062f2c7f95cc276a834c22f1a17179467176b624cc6f936e8bc3be5535ad1b";
}; };
propagatedBuildInputs = [ dateutil six ]; propagatedBuildInputs = [ dateutil six ];
checkInputs = [ mock nose pytest ]; checkInputs = [ mock nose pytest ];
# contains python3 specific code
doCheck = !isPy27;
meta = with lib; { meta = with lib; {
description = "FreezeGun: Let your Python tests travel through time"; description = "FreezeGun: Let your Python tests travel through time";

View file

@ -2,28 +2,22 @@
, buildPythonPackage , buildPythonPackage
, pythonOlder , pythonOlder
, fetchPypi , fetchPypi
, isPy27
, dateutil , dateutil
, six , pytestCheckHook
, mock
, nose
, pytest
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "freezegun"; pname = "freezegun";
version = "1.0.0"; version = "1.1.0";
disabled = pythonOlder "3.5"; disabled = pythonOlder "3.5";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "1cf08e441f913ff5e59b19cc065a8faa9dd1ddc442eaf0375294f344581a0643"; sha256 = "177f9dd59861d871e27a484c3332f35a6e3f5d14626f2bf91be37891f18927f3";
}; };
propagatedBuildInputs = [ dateutil six ]; propagatedBuildInputs = [ dateutil ];
checkInputs = [ mock nose pytest ]; checkInputs = [ pytestCheckHook ];
# contains python3 specific code
doCheck = !isPy27;
meta = with lib; { meta = with lib; {
description = "FreezeGun: Let your Python tests travel through time"; description = "FreezeGun: Let your Python tests travel through time";

View file

@ -1,18 +1,21 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , isPy27
, fetchFromGitHub
, freezegun , freezegun
, pytest , pytest
, pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pytest-freezegun"; pname = "pytest-freezegun";
version = "0.4.2"; version = "0.4.2";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "ktosiek";
extension = "zip"; repo = "pytest-freezegun";
sha256 = "19c82d5633751bf3ec92caa481fb5cffaac1787bd485f0df6436fd6242176949"; rev = version;
sha256 = "10c4pbh03b4s1q8cjd75lr0fvyf9id0zmdk29566qqsmaz28npas";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -20,6 +23,10 @@ buildPythonPackage rec {
pytest pytest
]; ];
checkInputs = [
pytestCheckHook
];
meta = with lib; { meta = with lib; {
description = "Wrap tests with fixtures in freeze_time"; description = "Wrap tests with fixtures in freeze_time";
homepage = "https://github.com/ktosiek/pytest-freezegun"; homepage = "https://github.com/ktosiek/pytest-freezegun";

View file

@ -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 ];
}; };
} }