Merge pull request #319903 from fabaff/strawberry-graphql-bump
python312Packages.inline-snapshot: init at 0.10.2, python311Packages.strawberry-graphql: 0.230.0 -> 0.235.0
This commit is contained in:
commit
8dc166a6c0
73
pkgs/development/python-modules/inline-snapshot/default.nix
Normal file
73
pkgs/development/python-modules/inline-snapshot/default.nix
Normal file
@ -0,0 +1,73 @@
|
||||
{
|
||||
lib,
|
||||
asttokens,
|
||||
black,
|
||||
buildPythonPackage,
|
||||
click,
|
||||
dirty-equals,
|
||||
executing,
|
||||
fetchFromGitHub,
|
||||
hypothesis,
|
||||
poetry-core,
|
||||
pyright,
|
||||
pytest-subtests,
|
||||
pytest-xdist,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
rich,
|
||||
time-machine,
|
||||
toml,
|
||||
types-toml,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "inline-snapshot";
|
||||
version = "0.10.2";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "15r10nk";
|
||||
repo = "inline-snapshot";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-19rvhqYkM3QiD0La5TRi/2uKza8HW/bnXeGAhOZ/bgs=";
|
||||
};
|
||||
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
dependencies = [
|
||||
asttokens
|
||||
black
|
||||
click
|
||||
executing
|
||||
rich
|
||||
toml
|
||||
types-toml
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
dirty-equals
|
||||
hypothesis
|
||||
pyright
|
||||
pytest-subtests
|
||||
pytest-xdist
|
||||
pytestCheckHook
|
||||
time-machine
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "inline_snapshot" ];
|
||||
|
||||
disabledTestPaths = [
|
||||
# Tests don't play nice with pytest-xdist
|
||||
"tests/test_typing.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Create and update inline snapshots in Python tests";
|
||||
homepage = "https://github.com/15r10nk/inline-snapshot/";
|
||||
changelog = "https://github.com/15r10nk/inline-snapshot/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -15,6 +15,7 @@
|
||||
flask,
|
||||
freezegun,
|
||||
graphql-core,
|
||||
inline-snapshot,
|
||||
libcst,
|
||||
opentelemetry-api,
|
||||
opentelemetry-sdk,
|
||||
@ -43,7 +44,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "strawberry-graphql";
|
||||
version = "0.230.0";
|
||||
version = "0.235.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.10";
|
||||
@ -52,7 +53,7 @@ buildPythonPackage rec {
|
||||
owner = "strawberry-graphql";
|
||||
repo = "strawberry";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-jhInHoOvPGIEoSddv8+30gY38L6XR5OEATUTdrHbNpA=";
|
||||
hash = "sha256-M9GwddyLfwGhA1z+imEOiNrXYFM2gFT9IcFf/8cRHAE=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
@ -66,7 +67,7 @@ buildPythonPackage rec {
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail "--emoji --mypy-ini-file=mypy.ini" "" \
|
||||
--replace-fail "--emoji" "" \
|
||||
'';
|
||||
|
||||
build-system = [ poetry-core ];
|
||||
@ -138,6 +139,7 @@ buildPythonPackage rec {
|
||||
daphne
|
||||
email-validator
|
||||
freezegun
|
||||
inline-snapshot
|
||||
pytest-asyncio
|
||||
pytest-emoji
|
||||
pytest-mock
|
||||
@ -154,7 +156,6 @@ buildPythonPackage rec {
|
||||
"tests/django/test_dataloaders.py"
|
||||
"tests/exceptions/"
|
||||
"tests/http/"
|
||||
"tests/mypy/test_plugin.py" # avoid dependency on mypy
|
||||
"tests/schema/extensions/"
|
||||
"tests/schema/test_dataloaders.py"
|
||||
"tests/schema/test_lazy/"
|
||||
|
@ -5819,6 +5819,8 @@ self: super: with self; {
|
||||
|
||||
inkex = callPackage ../development/python-modules/inkex { };
|
||||
|
||||
inline-snapshot = callPackage ../development/python-modules/inline-snapshot { };
|
||||
|
||||
inlinestyler = callPackage ../development/python-modules/inlinestyler { };
|
||||
|
||||
inotify = callPackage ../development/python-modules/inotify { };
|
||||
|
Loading…
Reference in New Issue
Block a user