3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #229359 from fabaff/inquirer-bump

python310Packages.inquirer: 3.1.2 -> 3.1.3
This commit is contained in:
Fabian Affolter 2023-05-02 07:42:43 +02:00 committed by GitHub
commit 50aad914fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 211 additions and 15 deletions

View file

@ -16,6 +16,7 @@
, requests , requests
, setuptools , setuptools
, six , six
, typing-extensions
, watchdog , watchdog
, websocket-client , websocket-client
, wheel , wheel
@ -23,21 +24,22 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "chalice"; pname = "chalice";
version = "1.27.3"; version = "1.28.0";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "aws"; owner = "aws";
repo = pname; repo = pname;
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-izzoYxzkaQqcEM5e8BhZeZIxtAGRDNH/qvqwvrx250s="; hash = "sha256-m3pSD4fahBW6Yt/w07Co4fTZD7k6as5cPwoK5QSry6M=";
}; };
postPatch = '' postPatch = ''
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace "attrs>=19.3.0,<21.5.0" "attrs" \
--replace "inquirer>=2.7.0,<3.0.0" "inquirer" \ --replace "inquirer>=2.7.0,<3.0.0" "inquirer" \
--replace "pip>=9,<22.3" "pip" \ --replace "pip>=9,<23.1" "pip" \
''; '';
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -51,6 +53,7 @@ buildPythonPackage rec {
pyyaml pyyaml
setuptools setuptools
six six
typing-extensions
wheel wheel
watchdog watchdog
]; ];
@ -87,13 +90,20 @@ buildPythonPackage rec {
# https://github.com/aws/chalice/issues/1850 # https://github.com/aws/chalice/issues/1850
"test_resolve_endpoint" "test_resolve_endpoint"
"test_endpoint_from_arn" "test_endpoint_from_arn"
# Tests require dist
"test_setup_tar_gz_hyphens_in_name"
"test_both_tar_gz"
"test_both_tar_bz2"
]; ];
pythonImportsCheck = [ "chalice" ]; pythonImportsCheck = [
"chalice"
];
meta = with lib; { meta = with lib; {
description = "Python Serverless Microframework for AWS"; description = "Python Serverless Microframework for AWS";
homepage = "https://github.com/aws/chalice"; homepage = "https://github.com/aws/chalice";
changelog = "https://github.com/aws/chalice/blob/${version}/CHANGELOG.rst";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ costrouc ]; maintainers = with maintainers; [ costrouc ];
}; };

View file

@ -19,7 +19,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "inquirer"; pname = "inquirer";
version = "3.1.2"; version = "3.1.3";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -28,7 +28,7 @@ buildPythonPackage rec {
owner = "magmax"; owner = "magmax";
repo = "python-inquirer"; repo = "python-inquirer";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-7kq0sZzPeCX7TA5Cl2rg6Uw+9jLz335a+tOrO0+Cyas="; hash = "sha256-7GfHsCQgnDUdiM1z9YNdDuwMNy6rLjR1UTnZMgpQ5k4=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View file

@ -0,0 +1,49 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pytest-emoji";
version = "0.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "hackebrot";
repo = "pytest-emoji";
rev = "refs/tags/${version}";
hash = "sha256-GuKBbIIODDnMi9YMX3zR4Jc3cbK+Zibj1ZeWvYkUY24=";
};
buildInputs = [
pytest
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pytest_emoji"
];
disabledTests = [
# Test scompare CLI output
"test_emoji_disabled_by_default_verbose"
"test_emoji_enabled_verbose"
"test_emoji_enabled_custom_verbose"
];
meta = with lib; {
description = "A pytest plugin that adds emojis to test result report";
homepage = "https://github.com/hackebrot/pytest-emoji";
changelog = "https://github.com/hackebrot/pytest-emoji/releases/tag/0.2.0";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -1,20 +1,56 @@
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, poetry-core, pythonOlder { lib
, click, backports-cached-property, graphql-core, pygments, python-dateutil, python-multipart, typing-extensions , aiohttp
, aiohttp, asgiref, chalice, django, fastapi, flask, pydantic, sanic, starlette, uvicorn , asgiref
, backports-cached-property
, buildPythonPackage
, chalice
, channels
, click
, daphne
, django
, email-validator
, fastapi
, fetchFromGitHub
, fetchpatch
, flask
, freezegun
, graphql-core
, libcst
, mypy
, poetry-core
, pydantic
, pygments
, pyinstrument
, pytest-aiohttp
, pytest-asyncio
, pytest-django
, pytest-emoji
, pytest-flask
, pytest-snapshot
, pytestCheckHook
, python-dateutil
, python-multipart
, pythonOlder
, rich
, sanic
, sanic-testing
, starlette
, typing-extensions
, uvicorn
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "strawberry-graphql"; pname = "strawberry-graphql";
version = "0.159.0"; version = "0.176.0";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "strawberry-graphql"; owner = "strawberry-graphql";
repo = "strawberry"; repo = "strawberry";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-3fyls1W2Vx0nDtp7mta/8QeKM6RRsAbw3dWOnH1/jk0="; hash = "sha256-e61wLFqc3HLCWUiVW3Gzbay1Oi8b7HsLT3+jPnbA4YY=";
}; };
patches = [ patches = [
@ -25,22 +61,121 @@ buildPythonPackage rec {
}) })
]; ];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --emoji --mypy-ini-file=mypy.ini --benchmark-disable" "" \
'';
nativeBuildInputs = [ nativeBuildInputs = [
poetry-core poetry-core
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
click backports-cached-property graphql-core pygments python-dateutil python-multipart typing-extensions graphql-core
aiohttp asgiref chalice django fastapi flask pydantic sanic starlette uvicorn python-dateutil
typing-extensions
]; ];
passthru.optional-dependencies = {
aiohttp = [
aiohttp
pytest-aiohttp
];
asgi = [
starlette
python-multipart
];
debug = [
rich
libcst
];
debug-server = [
click
libcst
pygments
python-multipart
rich
starlette
uvicorn
];
django = [
django
pytest-django
asgiref
];
channels = [
channels
asgiref
];
flask = [
flask
pytest-flask
];
# opentelemetry = [
# opentelemetry-api
# opentelemetry-sdk
# ];
pydantic = [
pydantic
];
sanic = [
sanic
];
fastapi = [
fastapi
python-multipart
];
chalice = [
chalice
];
cli = [
click
pygments
rich
libcst
];
# starlite = [
# starlite
# ];
pyinstrument = [
pyinstrument
];
};
nativeCheckInputs = [
daphne
email-validator
freezegun
mypy
pytest-asyncio
pytest-emoji
pytest-snapshot
pytestCheckHook
sanic-testing
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
pythonImportsCheck = [ pythonImportsCheck = [
"strawberry" "strawberry"
]; ];
disabledTestPaths = [
"tests/benchmarks/"
"tests/cli/"
"tests/django/test_dataloaders.py"
"tests/exceptions/"
"tests/http/"
"tests/schema/extensions/"
"tests/schema/test_dataloaders.py"
"tests/schema/test_lazy/"
"tests/starlite/"
"tests/test_dataloaders.py"
"tests/utils/test_pretty_print.py"
];
meta = with lib; { meta = with lib; {
description = "A GraphQL library for Python that leverages type annotations"; description = "A GraphQL library for Python that leverages type annotations";
homepage = "https://strawberry.rocks"; homepage = "https://strawberry.rocks";
changelog = "https://github.com/strawberry-graphql/strawberry/blob/${version}/CHANGELOG.md";
license = with licenses; [ mit ]; license = with licenses; [ mit ];
maintainers = with maintainers; [ izorkin ]; maintainers = with maintainers; [ izorkin ];
}; };

View file

@ -9340,6 +9340,8 @@ self: super: with self; {
pytest-dotenv = callPackage ../development/python-modules/pytest-dotenv { }; pytest-dotenv = callPackage ../development/python-modules/pytest-dotenv { };
pytest-emoji = callPackage ../development/python-modules/pytest-emoji { };
pytest-env = callPackage ../development/python-modules/pytest-env { }; pytest-env = callPackage ../development/python-modules/pytest-env { };
pytest-error-for-skips = callPackage ../development/python-modules/pytest-error-for-skips { }; pytest-error-for-skips = callPackage ../development/python-modules/pytest-error-for-skips { };