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