python3Packages.django-rest-registration: fix build

Wrong jwt dependency broke a test. Accelerate the otherwise slow tests
with xdist and clean up and reannotate failing tests.
This commit is contained in:
Martin Weinelt
2025-12-05 14:15:34 +01:00
parent 1b3d5b91c2
commit ce41ef26fa
@@ -5,9 +5,10 @@
djangorestframework,
fetchFromGitHub,
pytest-django,
pytest-xdist,
pytestCheckHook,
pythonOlder,
jwt,
pyjwt,
setuptools,
}:
@@ -35,16 +36,15 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytestCheckHook
pytest-django
jwt
pytest-xdist
pyjwt
];
pythonImportsCheck = [ "rest_registration" ];
disabledTests = [
# This test fails on Python 3.10
# Failed: DID NOT RAISE <class 'rest_registration.utils.html.MLStripperParseFailed'>
"test_convert_html_to_text_fails"
# This test is broken and was removed after 0.7.3. Remove this line once version > 0.7.3
"test_coreapi_autoschema_success"
];
meta = {