2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-11-16 04:20:00 +00:00
|
|
|
, fetchpatch
|
2022-06-16 17:23:12 +00:00
|
|
|
, dj-rest-auth
|
|
|
|
, django
|
|
|
|
, django-allauth
|
|
|
|
, django-filter
|
|
|
|
, django-oauth-toolkit
|
|
|
|
, django-polymorphic
|
|
|
|
, django-rest-auth
|
|
|
|
, django-rest-polymorphic
|
|
|
|
, djangorestframework
|
|
|
|
, djangorestframework-camel-case
|
|
|
|
, djangorestframework-dataclasses
|
|
|
|
, djangorestframework-recursive
|
|
|
|
, djangorestframework-simplejwt
|
|
|
|
, drf-jwt
|
|
|
|
, drf-nested-routers
|
|
|
|
, drf-spectacular-sidecar
|
|
|
|
, inflection
|
|
|
|
, jsonschema
|
|
|
|
, psycopg2
|
|
|
|
, pytest-django
|
|
|
|
, pytestCheckHook
|
|
|
|
, pyyaml
|
|
|
|
, uritemplate
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "drf-spectacular";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.26.5";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tfranzel";
|
|
|
|
repo = "drf-spectacular";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-sK+upLh0mi8eHKh1Wt9FoLRjqlHitTSX0Zl54S4Ce6E=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
# https://github.com/tfranzel/drf-spectacular/pull/1090
|
|
|
|
url = "https://github.com/tfranzel/drf-spectacular/commit/8db4c2458f8403c53db0db352dd94057d285814b.patch";
|
|
|
|
hash = "sha256-Ue5y7IB4ie+9CEineMBgMMCLGiF4zqmn60TJvKsV1h0=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
|
|
|
djangorestframework
|
|
|
|
inflection
|
|
|
|
jsonschema
|
|
|
|
pyyaml
|
|
|
|
uritemplate
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
dj-rest-auth
|
|
|
|
django-allauth
|
|
|
|
django-filter
|
|
|
|
django-oauth-toolkit
|
|
|
|
django-polymorphic
|
|
|
|
django-rest-auth
|
|
|
|
django-rest-polymorphic
|
|
|
|
djangorestframework-camel-case
|
|
|
|
djangorestframework-dataclasses
|
|
|
|
djangorestframework-recursive
|
|
|
|
djangorestframework-simplejwt
|
|
|
|
drf-jwt
|
|
|
|
drf-nested-routers
|
|
|
|
drf-spectacular-sidecar
|
|
|
|
psycopg2
|
|
|
|
pytest-django
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
disabledTests = [
|
|
|
|
# requires django with gdal
|
|
|
|
"test_rest_framework_gis"
|
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
pythonImportsCheck = [ "drf_spectacular" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Sane and flexible OpenAPI 3 schema generation for Django REST framework";
|
|
|
|
homepage = "https://github.com/tfranzel/drf-spectacular";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/tfranzel/drf-spectacular/releases/tag/${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
license = licenses.bsd3;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
}
|