2021-03-20 19:46:47 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, inflection
|
2021-11-01 20:59:40 +00:00
|
|
|
, ruamel-yaml
|
2021-06-03 10:09:11 +00:00
|
|
|
, setuptools-scm
|
2021-03-20 19:46:47 +00:00
|
|
|
, six
|
|
|
|
, coreapi
|
|
|
|
, djangorestframework
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-django
|
|
|
|
, datadiff
|
2019-08-12 19:53:25 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "drf-yasg";
|
2022-08-01 08:03:38 +00:00
|
|
|
version = "1.21.3";
|
2019-08-12 19:53:25 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-08-01 08:03:38 +00:00
|
|
|
sha256 = "sha256-su67Q4+mQVA6CNrHkb4kGD6ibbz+NxqYJOqR9uOpiKo=";
|
2019-08-12 19:53:25 +00:00
|
|
|
};
|
|
|
|
|
2021-03-20 19:14:42 +00:00
|
|
|
postPatch = ''
|
|
|
|
# https://github.com/axnsan12/drf-yasg/pull/710
|
2022-07-16 10:59:05 +00:00
|
|
|
sed -i "/packaging/d" requirements/base.txt
|
2021-03-20 19:14:42 +00:00
|
|
|
'';
|
|
|
|
|
2019-08-12 19:53:25 +00:00
|
|
|
nativeBuildInputs = [
|
2021-06-03 10:09:11 +00:00
|
|
|
setuptools-scm
|
2019-08-12 19:53:25 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
inflection
|
2021-11-01 20:59:40 +00:00
|
|
|
ruamel-yaml
|
2019-08-12 19:53:25 +00:00
|
|
|
coreapi
|
|
|
|
djangorestframework
|
|
|
|
];
|
|
|
|
|
2021-03-20 19:46:47 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-django
|
|
|
|
datadiff
|
|
|
|
];
|
|
|
|
|
|
|
|
# ImportError: No module named 'testproj.settings'
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "drf_yasg" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-08-12 19:53:25 +00:00
|
|
|
description = "Generation of Swagger/OpenAPI schemas for Django REST Framework";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/axnsan12/drf-yasg";
|
2021-05-05 18:31:54 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2019-08-12 19:53:25 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|