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