d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
83 lines
1.8 KiB
Nix
83 lines
1.8 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.26.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tfranzel";
|
|
repo = "drf-spectacular";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-O47676BOuCx3wMpeuRATQOAWZQev+R+OxZi4boQABmc=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
django
|
|
djangorestframework
|
|
inflection
|
|
jsonschema
|
|
pyyaml
|
|
uritemplate
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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
|
|
];
|
|
|
|
disabledTests = [
|
|
# requires django with gdal
|
|
"test_rest_framework_gis"
|
|
];
|
|
|
|
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";
|
|
changelog = "https://github.com/tfranzel/drf-spectacular/releases/tag/${version}";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|