From 5160f9cacc0c76dcb609bac8fef4cb7caa3abf04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 18 Jan 2025 01:09:42 +0100 Subject: [PATCH] python313Packages.drf-spectacular: 0.27.2 -> 0.28.0 --- .../drf-spectacular/default.nix | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/drf-spectacular/default.nix b/pkgs/development/python-modules/drf-spectacular/default.nix index 4a0407e24d8b..9dc2e73c7c33 100644 --- a/pkgs/development/python-modules/drf-spectacular/default.nix +++ b/pkgs/development/python-modules/drf-spectacular/default.nix @@ -32,7 +32,7 @@ buildPythonPackage rec { pname = "drf-spectacular"; - version = "0.27.2"; + version = "0.28.0"; pyproject = true; disabled = pythonOlder "3.7"; @@ -41,7 +41,7 @@ buildPythonPackage rec { owner = "tfranzel"; repo = "drf-spectacular"; tag = version; - hash = "sha256-lOgFDkAY+PqSeyLSvWFT7KPVicSJZxd6yl17GAGHbRs="; + hash = "sha256-+RXcCpsNAoGxK/taEf7+7QUDrHydvy5fIdBuEXi63DQ="; }; patches = [ @@ -52,6 +52,11 @@ buildPythonPackage rec { }) ]; + postPatch = '' + substituteInPlace tests/conftest.py \ + --replace-fail "'allauth.account'," "'allauth.account', 'allauth.socialaccount'," + ''; + build-system = [ setuptools ]; dependencies = [ @@ -81,14 +86,22 @@ buildPythonPackage rec { psycopg2 pytest-django pytestCheckHook - ]; + ] ++ django-allauth.optional-dependencies.socialaccount; disabledTests = [ # Test requires django with gdal "test_rest_framework_gis" # Outdated test artifact - "test_pydantic_decoration" + "test_callbacks" + # django-rest-knox is not packaged "test_knox_auth_token" + # slightly different error messages which get asserted + "test_model_choice_display_method_on_readonly" + ]; + + disabledTestPaths = [ + # Outdated test artifact + "tests/contrib/test_pydantic.py" ]; pythonImportsCheck = [ "drf_spectacular" ];