Skip to content

Commit

Permalink
python313Packages.drf-spectacular: 0.27.2 -> 0.28.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Jan 18, 2025
1 parent bd8cd73 commit c8f6666
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions pkgs/development/python-modules/drf-spectacular/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

buildPythonPackage rec {
pname = "drf-spectacular";
version = "0.27.2";
version = "0.28.0";
pyproject = true;

disabled = pythonOlder "3.7";
Expand All @@ -41,7 +41,7 @@ buildPythonPackage rec {
owner = "tfranzel";
repo = "drf-spectacular";
tag = version;
hash = "sha256-lOgFDkAY+PqSeyLSvWFT7KPVicSJZxd6yl17GAGHbRs=";
hash = "sha256-+RXcCpsNAoGxK/taEf7+7QUDrHydvy5fIdBuEXi63DQ=";
};

patches = [
Expand All @@ -52,6 +52,11 @@ buildPythonPackage rec {
})
];

postPatch = ''
substituteInPlace tests/conftest.py \
--replace-fail "'allauth.account'," "'allauth.account', 'allauth.socialaccount',"
'';

build-system = [ setuptools ];

dependencies = [
Expand Down Expand Up @@ -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" ];
Expand Down

0 comments on commit c8f6666

Please sign in to comment.