pythonPackages.drf-yasg: use pythonImportsCheck

This commit is contained in:
Robert Schütz 2021-03-20 20:46:47 +01:00
parent 55a489ac9e
commit 94c361c592

View File

@ -1,13 +1,15 @@
{
lib,
buildPythonPackage,
fetchPypi,
inflection,
ruamel_yaml,
setuptools_scm,
six,
coreapi,
djangorestframework,
{ lib
, buildPythonPackage
, fetchPypi
, inflection
, ruamel_yaml
, setuptools_scm
, six
, coreapi
, djangorestframework
, pytestCheckHook
, pytest-django
, datadiff
}:
buildPythonPackage rec {
@ -36,6 +38,17 @@ buildPythonPackage rec {
djangorestframework
];
checkInputs = [
pytestCheckHook
pytest-django
datadiff
];
# ImportError: No module named 'testproj.settings'
doCheck = false;
pythonImportsCheck = [ "drf_yasg" ];
meta = with lib; {
description = "Generation of Swagger/OpenAPI schemas for Django REST Framework";
homepage = "https://github.com/axnsan12/drf-yasg";