Merge pull request #229359 from fabaff/inquirer-bump
python310Packages.inquirer: 3.1.2 -> 3.1.3
This commit is contained in:
commit
50aad914fc
|
@ -16,6 +16,7 @@
|
|||
, requests
|
||||
, setuptools
|
||||
, six
|
||||
, typing-extensions
|
||||
, watchdog
|
||||
, websocket-client
|
||||
, wheel
|
||||
|
@ -23,21 +24,22 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "chalice";
|
||||
version = "1.27.3";
|
||||
version = "1.28.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aws";
|
||||
repo = pname;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-izzoYxzkaQqcEM5e8BhZeZIxtAGRDNH/qvqwvrx250s=";
|
||||
hash = "sha256-m3pSD4fahBW6Yt/w07Co4fTZD7k6as5cPwoK5QSry6M=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "attrs>=19.3.0,<21.5.0" "attrs" \
|
||||
--replace "inquirer>=2.7.0,<3.0.0" "inquirer" \
|
||||
--replace "pip>=9,<22.3" "pip" \
|
||||
--replace "pip>=9,<23.1" "pip" \
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
@ -51,6 +53,7 @@ buildPythonPackage rec {
|
|||
pyyaml
|
||||
setuptools
|
||||
six
|
||||
typing-extensions
|
||||
wheel
|
||||
watchdog
|
||||
];
|
||||
|
@ -87,13 +90,20 @@ buildPythonPackage rec {
|
|||
# https://github.com/aws/chalice/issues/1850
|
||||
"test_resolve_endpoint"
|
||||
"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; {
|
||||
description = "Python Serverless Microframework for AWS";
|
||||
homepage = "https://github.com/aws/chalice";
|
||||
changelog = "https://github.com/aws/chalice/blob/${version}/CHANGELOG.rst";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ costrouc ];
|
||||
};
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "inquirer";
|
||||
version = "3.1.2";
|
||||
version = "3.1.3";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
@ -28,7 +28,7 @@ buildPythonPackage rec {
|
|||
owner = "magmax";
|
||||
repo = "python-inquirer";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-7kq0sZzPeCX7TA5Cl2rg6Uw+9jLz335a+tOrO0+Cyas=";
|
||||
hash = "sha256-7GfHsCQgnDUdiM1z9YNdDuwMNy6rLjR1UTnZMgpQ5k4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
|
49
pkgs/development/python-modules/pytest-emoji/default.nix
Normal file
49
pkgs/development/python-modules/pytest-emoji/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -1,20 +1,56 @@
|
|||
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, poetry-core, pythonOlder
|
||||
, click, backports-cached-property, graphql-core, pygments, python-dateutil, python-multipart, typing-extensions
|
||||
, aiohttp, asgiref, chalice, django, fastapi, flask, pydantic, sanic, starlette, uvicorn
|
||||
{ lib
|
||||
, aiohttp
|
||||
, 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 {
|
||||
pname = "strawberry-graphql";
|
||||
version = "0.159.0";
|
||||
version = "0.176.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "strawberry-graphql";
|
||||
repo = "strawberry";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-3fyls1W2Vx0nDtp7mta/8QeKM6RRsAbw3dWOnH1/jk0=";
|
||||
hash = "sha256-e61wLFqc3HLCWUiVW3Gzbay1Oi8b7HsLT3+jPnbA4YY=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
@ -25,22 +61,121 @@ buildPythonPackage rec {
|
|||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace " --emoji --mypy-ini-file=mypy.ini --benchmark-disable" "" \
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
click backports-cached-property graphql-core pygments python-dateutil python-multipart typing-extensions
|
||||
aiohttp asgiref chalice django fastapi flask pydantic sanic starlette uvicorn
|
||||
graphql-core
|
||||
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 = [
|
||||
"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; {
|
||||
description = "A GraphQL library for Python that leverages type annotations";
|
||||
homepage = "https://strawberry.rocks";
|
||||
changelog = "https://github.com/strawberry-graphql/strawberry/blob/${version}/CHANGELOG.md";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ izorkin ];
|
||||
};
|
||||
|
|
|
@ -9340,6 +9340,8 @@ self: super: with self; {
|
|||
|
||||
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-error-for-skips = callPackage ../development/python-modules/pytest-error-for-skips { };
|
||||
|
|
Loading…
Reference in a new issue