Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 20 additions & 9 deletions pkgs/development/python-modules/ariadne/default.nix
Original file line number Diff line number Diff line change
@@ -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
];
Expand All @@ -43,17 +48,23 @@ buildPythonPackage rec {

nativeCheckInputs = [
freezegun
httpx
pytest-asyncio
pytest-mock
pytestCheckHook
snapshottest
python-multipart
syrupy
werkzeug
];

pythonImportsCheck = [
"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"
Expand Down