3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #288244 from fabaff/ariadne-fix

python311Packages.ariadne: 0.21.0 -> 0.22.0
This commit is contained in:
Fabian Affolter 2024-02-13 08:16:07 +01:00 committed by GitHub
commit a571ce6b98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,32 +1,37 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, hatchling
, freezegun
, graphql-core
, hatchling
, httpx
, pytest-asyncio
, pytest-mock
, pytestCheckHook
, pythonOlder
, snapshottest
, python-multipart
, starlette
, syrupy
, typing-extensions
, werkzeug
}:
buildPythonPackage rec {
pname = "ariadne";
version = "0.21.0";
format = "pyproject";
version = "0.22.0";
pyproject = true;
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "mirumee";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-T5J0xAF33PDkC8sDOzHADpQJxwdXwKary0y/jaUJ9Fk=";
repo = "ariadne";
# https://github.com/mirumee/ariadne/issues/1157
#rev = "refs/tags/${version}";
rev = "refs/tags/022.0";
hash = "sha256-GMBtW2gZbF1m0BrKhYEkSaZYt5tIGmP/ipy6WC1H1pg=";
};
patches = [
./remove-opentracing.patch
];
@ -43,10 +48,12 @@ buildPythonPackage rec {
nativeCheckInputs = [
freezegun
httpx
pytest-asyncio
pytest-mock
pytestCheckHook
snapshottest
python-multipart
syrupy
werkzeug
];
@ -54,6 +61,10 @@ buildPythonPackage rec {
"ariadne"
];
pytestFlagsArray = [
"--snapshot-update"
];
disabledTests = [
# TypeError: TestClient.request() got an unexpected keyword argument 'content'
"test_attempt_parse_request_missing_content_type_raises_bad_request_error"