Merge pull request #174574 from SuperSandro2000/drf-spectacular

This commit is contained in:
Sandro 2022-05-26 23:18:46 +02:00 committed by GitHub
commit 86f678f76d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 79 additions and 0 deletions

View File

@ -0,0 +1,77 @@
{ 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";
version = "0.22.1";
src = fetchFromGitHub {
owner = "tfranzel";
repo = "drf-spectacular";
rev = version;
sha256 = "sha256-SgzyIzgFBXsNHfY2OfCq0LhJyi/ZCOSA8QveKNduIBc=";
};
propagatedBuildInputs = [
django
djangorestframework
inflection
jsonschema
pyyaml
uritemplate
];
checkInputs = [
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
];
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 ];
};
}

View File

@ -2548,6 +2548,8 @@ in {
drf-nested-routers = callPackage ../development/python-modules/drf-nested-routers { };
drf-spectacular = callPackage ../development/python-modules/drf-spectacular { };
drf-spectacular-sidecar = callPackage ../development/python-modules/drf-spectacular-sidecar { };
drf-yasg = callPackage ../development/python-modules/drf-yasg { };