Files
nixpkgs/pkgs/development/python-modules/drf-spectacular/default.nix
T
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

83 lines
1.7 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.24.2";
src = fetchFromGitHub {
owner = "tfranzel";
repo = "drf-spectacular";
rev = version;
sha256 = "sha256-WE+iOD3OjDByisHI9GgvjUUSpvOz+IYi/3Y8AmR7Eps=";
};
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";
license = licenses.bsd3;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}