1{ 2 lib, 3 buildPythonPackage, 4 django, 5 djangorestframework, 6 fetchFromGitHub, 7 pytest-django, 8 pytestCheckHook, 9 pythonOlder, 10 jwt, 11 setuptools, 12}: 13 14buildPythonPackage rec { 15 pname = "django-rest-registration"; 16 version = "0.9.0"; 17 pyproject = true; 18 19 build-system = [ setuptools ]; 20 21 disabled = pythonOlder "3.7"; 22 23 src = fetchFromGitHub { 24 owner = "apragacz"; 25 repo = "django-rest-registration"; 26 tag = "v${version}"; 27 hash = "sha256-EaS1qN7GpfPPeSLwwQdVWSRO2dv0DG5LD7vnXckz4Bg="; 28 }; 29 30 dependencies = [ 31 django 32 djangorestframework 33 ]; 34 35 nativeCheckInputs = [ 36 pytestCheckHook 37 pytest-django 38 jwt 39 ]; 40 41 pythonImportsCheck = [ "rest_registration" ]; 42 43 disabledTests = [ 44 # This test fails on Python 3.10 45 "test_convert_html_to_text_fails" 46 # This test is broken and was removed after 0.7.3. Remove this line once version > 0.7.3 47 "test_coreapi_autoschema_success" 48 ]; 49 50 meta = { 51 description = "User-related REST API based on the awesome Django REST Framework"; 52 homepage = "https://github.com/apragacz/django-rest-registration/"; 53 changelog = "https://github.com/apragacz/django-rest-registration/releases/tag/${version}"; 54 license = lib.licenses.mit; 55 maintainers = with lib.maintainers; [ sephi ]; 56 }; 57}