diff --git a/pkgs/development/python-modules/strawberry-django/default.nix b/pkgs/development/python-modules/strawberry-django/default.nix index ea6326714e57..d5a74275fc56 100644 --- a/pkgs/development/python-modules/strawberry-django/default.nix +++ b/pkgs/development/python-modules/strawberry-django/default.nix @@ -2,11 +2,18 @@ lib, buildPythonPackage, fetchFromGitHub, + + # build-system poetry-core, setuptools, + + # dependencies asgiref, django, + django-tree-queries, strawberry-graphql, + + # optional-dependencies django-debug-toolbar, django-choices-field, @@ -26,14 +33,14 @@ buildPythonPackage rec { pname = "strawberry-django"; - version = "0.47.1"; + version = "0.55.0"; pyproject = true; src = fetchFromGitHub { owner = "strawberry-graphql"; repo = "strawberry-django"; - rev = "v${version}"; - hash = "sha256-N7/EJ1AQ2xUJCEX6/xtyH1o/CuDzlvrUtpoDLq+H1WU="; + tag = "v${version}"; + hash = "sha256-Em6GEYSdVEFkoVa+qI+xN369FOLH9hpEXeMKn9xUCac="; }; build-system = [ @@ -44,9 +51,16 @@ buildPythonPackage rec { dependencies = [ asgiref django + django-tree-queries strawberry-graphql ]; + optional-dependencies = { + debug-toolbar = [ django-debug-toolbar ]; + enum = [ django-choices-field ]; + }; + + nativeCheckInputs = [ pytestCheckHook @@ -64,15 +78,10 @@ buildPythonPackage rec { pythonImportsCheck = [ "strawberry_django" ]; - optional-dependencies = { - debug-toolbar = [ django-debug-toolbar ]; - enum = [ django-choices-field ]; - }; - meta = { description = "Strawberry GraphQL Django extension"; homepage = "https://github.com/strawberry-graphql/strawberry-django"; - changelog = "https://github.com/strawberry-graphql/strawberry-django/blob/${src.rev}/CHANGELOG.md"; + changelog = "https://github.com/strawberry-graphql/strawberry-django/blob/${src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ minijackson ]; };