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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user