3a4df29a92
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
77 lines
1.6 KiB
Nix
77 lines
1.6 KiB
Nix
{ 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 ];
|
|
};
|
|
}
|