Merge pull request #201520 from dotlambda/pytest-asyncio-0.20.2-prep

python310Packages.pytest-asyncio: get reverse dependencies ready for update
This commit is contained in:
Robert Schütz 2022-11-19 21:35:03 -08:00 committed by GitHub
commit 087262f7ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
31 changed files with 31 additions and 74 deletions

View File

@ -64,6 +64,7 @@ let
sha256 = "sha256-bKrPLbD9zG7DwIYBst1cb+zkDsM8B02wh3D80iortpw=";
};
propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [ self.daphne ];
pytestFlagsArray = [ "--asyncio-mode=auto" ];
});
daphne = super.daphne.overridePythonAttrs (oldAttrs: rec {

View File

@ -33,10 +33,6 @@ buildPythonPackage rec {
trustme
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
];
disabledTests = lib.optionals stdenv.isDarwin [
# uses 127.0.0.2, which macos doesn't like
"test_pasv_connection_pasv_forced_response_address"

View File

@ -50,7 +50,7 @@ buildPythonPackage rec {
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
"--asyncio-mode=auto"
];
pythonImportsCheck = [

View File

@ -44,10 +44,6 @@ buildPythonPackage rec {
time-machine
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
];
disabledTests = [
# AssertionError: Expected <14:00> to be equal to <17:00>, but was not.
"test_schedule_parser_with_a_weekly_recurring_enabled_schedule_data"

View File

@ -35,7 +35,7 @@ buildPythonPackage rec {
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
"--asyncio-mode=auto"
];
postPatch = ''

View File

@ -56,7 +56,7 @@ buildPythonPackage rec {
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
"--asyncio-mode=auto"
];
disabledTestPaths = [

View File

@ -41,10 +41,6 @@ buildPythonPackage rec {
pytestCheckHook
] ++ passthru.optional-dependencies.daphne;
pytestFlagsArray = [
"--asyncio-mode=legacy"
];
pythonImportsCheck = [
"channels"
];

View File

@ -32,7 +32,7 @@ buildPythonPackage rec {
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
"--asyncio-mode=auto"
];
postPatch = ''

View File

@ -28,7 +28,7 @@ buildPythonPackage rec {
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
"--asyncio-mode=auto"
];
pythonImportsCheck = [ "dynalite_devices_lib" ];

View File

@ -80,7 +80,7 @@ buildPythonPackage rec {
'';
pytestFlagsArray = [
"--asyncio-mode=legacy"
"--asyncio-mode=auto"
];
disabledTests = [

View File

@ -46,7 +46,7 @@ buildPythonPackage rec {
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
"--asyncio-mode=auto"
];
disabledTests = [

View File

@ -1,6 +1,6 @@
{ lib
, buildPythonPackage
, fetchFromGitLab
, fetchFromGitHub
, pythonOlder
, typing-extensions
, wsproto
@ -10,25 +10,27 @@
, mock
, poetry-core
, pytest-asyncio
, pytest-cov
, pytest-sugar
, pytest-trio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "Hypercorn";
version = "0.13.2";
version = "0.14.3";
disabled = pythonOlder "3.7";
format = "pyproject";
src = fetchFromGitLab {
src = fetchFromGitHub {
owner = "pgjones";
repo = pname;
rev = version;
sha256 = "sha256-fIjw5A6SvFUv8cU7xunVlPYphv+glypY4pzvHNifYLQ=";
hash = "sha256-ECREs8UwqTWUweUrwnUwpVotCII2v4Bz7ZCk3DSAd8I=";
};
postPatch = ''
sed -i "/^addopts/d" pyproject.toml
'';
nativeBuildInputs = [
poetry-core
];
@ -38,20 +40,14 @@ buildPythonPackage rec {
checkInputs = [
pytest-asyncio
pytest-cov
pytest-sugar
pytest-trio
pytestCheckHook
] ++ lib.optionals (pythonOlder "3.8") [ mock ];
pytestFlagsArray = [
"--asyncio-mode=legacy"
];
pythonImportsCheck = [ "hypercorn" ];
meta = with lib; {
homepage = "https://pgjones.gitlab.io/hypercorn/";
homepage = "https://github.com/pgjones/hypercorn";
description = "The ASGI web server inspired by Gunicorn";
license = licenses.mit;
maintainers = with maintainers; [ dgliwka ];

View File

@ -33,7 +33,7 @@ buildPythonPackage rec {
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
"--asyncio-mode=auto"
"tests.py"
];

View File

@ -79,7 +79,6 @@ buildPythonPackage rec {
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
"--benchmark-disable"
];

View File

@ -49,10 +49,6 @@ buildPythonPackage rec {
--replace 'deepdiff = "^5.8.1"' 'deepdiff = ">=5.8.1"'
'';
pytestFlagsArray = [
"--asyncio-mode=legacy"
];
pythonImportsCheck = [
"pylitterbot"
];

View File

@ -40,7 +40,7 @@ buildPythonPackage rec {
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
"--asyncio-mode=auto"
];
pythonImportsCheck = [

View File

@ -30,10 +30,6 @@ buildPythonPackage rec {
pytestCheckHook
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
];
pythonImportsCheck = [
"pyotgw"
];

View File

@ -29,7 +29,7 @@ buildPythonPackage rec {
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
"--asyncio-mode=auto"
];
disabledTests = lib.optionals stdenv.isDarwin [

View File

@ -35,7 +35,7 @@ buildPythonPackage rec {
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
"--asyncio-mode=auto"
];
pythonImportsCheck = [ "pyspcwebgw" ];

View File

@ -40,7 +40,7 @@ buildPythonPackage rec {
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
"--asyncio-mode=auto"
];
pythonImportsCheck = [

View File

@ -44,7 +44,7 @@ buildPythonPackage rec {
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
"--asyncio-mode=auto"
];
disabledTestPaths = [

View File

@ -38,10 +38,6 @@ buildPythonPackage rec {
pytestCheckHook
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
];
postPatch = ''
substituteInPlace setup.py \
--replace "pyjwt~=2.1.0" "pyjwt>=2.1.0"

View File

@ -40,7 +40,7 @@ buildPythonPackage rec {
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
"--asyncio-mode=auto"
];
postPatch = ''

View File

@ -31,7 +31,7 @@ buildPythonPackage rec {
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
"--asyncio-mode=auto"
];
disabledTests = [

View File

@ -48,7 +48,7 @@ buildPythonPackage rec {
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
"--asyncio-mode=auto"
];
pythonImportsCheck = [

View File

@ -12,13 +12,13 @@
buildPythonPackage rec {
pname = "respx";
version = "0.19.2";
version = "0.20.0";
src = fetchFromGitHub {
owner = "lundberg";
repo = pname;
rev = version;
sha256 = "sha256-uNmSBJOQF4baq8AWzfwj0kinO19jr6Mp9Yblys/WmZs=";
sha256 = "sha256-xb5jb+l6wA1v/r2yGUB6IuUVXIaTc+3O/w5xn/+A74o=";
};
propagatedBuildInputs = [
@ -35,10 +35,6 @@ buildPythonPackage rec {
trio
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
];
postPatch = ''
sed -i "/--cov/d" setup.cfg
'';
@ -52,6 +48,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python library for mocking HTTPX";
homepage = "https://lundberg.github.io/respx/";
changelog = "https://github.com/lundberg/respx/blob/${src.rev}/CHANGELOG.md";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};

View File

@ -39,10 +39,6 @@ buildPythonPackage rec {
simplejson
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
];
meta = with lib; {
description = "Painless structural logging";
homepage = "https://github.com/hynek/structlog";

View File

@ -36,10 +36,6 @@ buildPythonPackage rec {
pytestCheckHook
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov=subarulink" ""

View File

@ -40,7 +40,7 @@ buildPythonPackage rec {
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
"--asyncio-mode=auto"
];
postPatch = ''

View File

@ -45,7 +45,7 @@ buildPythonPackage rec {
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
"--asyncio-mode=auto"
];
meta = with lib; {

View File

@ -49,10 +49,6 @@ buildPythonPackage rec {
asynctest
];
pytestFlagsArray = [
"--asyncio-mode=legacy"
];
pythonImportsCheck = [
"zigpy_znp"
];