python313Packages.drf-spectacular: 0.27.2 -> 0.28.0

This commit is contained in:
Sandro Jäckel
2025-01-18 01:53:48 +01:00
parent f24b0fe95f
commit 5160f9cacc
@@ -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" ];