2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, 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";
|
2022-11-04 12:27:35 +00:00
|
|
|
version = "0.24.2";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tfranzel";
|
|
|
|
repo = "drf-spectacular";
|
|
|
|
rev = version;
|
2022-11-04 12:27:35 +00:00
|
|
|
sha256 = "sha256-WE+iOD3OjDByisHI9GgvjUUSpvOz+IYi/3Y8AmR7Eps=";
|
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";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|