1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, fetchpatch 5, dj-rest-auth 6, django 7, django-allauth 8, django-filter 9, django-oauth-toolkit 10, django-polymorphic 11, django-rest-auth 12, django-rest-polymorphic 13, djangorestframework 14, djangorestframework-camel-case 15, djangorestframework-dataclasses 16, djangorestframework-recursive 17, djangorestframework-simplejwt 18, drf-jwt 19, drf-nested-routers 20, drf-spectacular-sidecar 21, inflection 22, jsonschema 23, psycopg2 24, pytest-django 25, pytestCheckHook 26, pyyaml 27, uritemplate 28}: 29 30buildPythonPackage rec { 31 pname = "drf-spectacular"; 32 version = "0.26.5"; 33 34 src = fetchFromGitHub { 35 owner = "tfranzel"; 36 repo = "drf-spectacular"; 37 rev = "refs/tags/${version}"; 38 hash = "sha256-sK+upLh0mi8eHKh1Wt9FoLRjqlHitTSX0Zl54S4Ce6E="; 39 }; 40 41 patches = [ 42 (fetchpatch { 43 # https://github.com/tfranzel/drf-spectacular/pull/1090 44 url = "https://github.com/tfranzel/drf-spectacular/commit/8db4c2458f8403c53db0db352dd94057d285814b.patch"; 45 hash = "sha256-Ue5y7IB4ie+9CEineMBgMMCLGiF4zqmn60TJvKsV1h0="; 46 }) 47 ]; 48 49 propagatedBuildInputs = [ 50 django 51 djangorestframework 52 inflection 53 jsonschema 54 pyyaml 55 uritemplate 56 ]; 57 58 nativeCheckInputs = [ 59 dj-rest-auth 60 django-allauth 61 django-filter 62 django-oauth-toolkit 63 django-polymorphic 64 django-rest-auth 65 django-rest-polymorphic 66 djangorestframework-camel-case 67 djangorestframework-dataclasses 68 djangorestframework-recursive 69 djangorestframework-simplejwt 70 drf-jwt 71 drf-nested-routers 72 drf-spectacular-sidecar 73 psycopg2 74 pytest-django 75 pytestCheckHook 76 ]; 77 78 disabledTests = [ 79 # requires django with gdal 80 "test_rest_framework_gis" 81 ]; 82 83 pythonImportsCheck = [ "drf_spectacular" ]; 84 85 meta = with lib; { 86 description = "Sane and flexible OpenAPI 3 schema generation for Django REST framework"; 87 homepage = "https://github.com/tfranzel/drf-spectacular"; 88 changelog = "https://github.com/tfranzel/drf-spectacular/releases/tag/${version}"; 89 license = licenses.bsd3; 90 maintainers = with maintainers; [ ]; 91 }; 92}