2021-04-05 15:23:46 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, inflection
|
2021-12-06 16:07:01 +00:00
|
|
|
, ruamel-yaml
|
2021-06-04 09:07:49 +00:00
|
|
|
, setuptools-scm
|
2021-04-05 15:23:46 +00:00
|
|
|
, six
|
|
|
|
, coreapi
|
|
|
|
, djangorestframework
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-django
|
|
|
|
, datadiff
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "drf-yasg";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "1.21.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-zu8MO13EOJeBr9eG5tw2l68qL+DYck7h9jfCPXW7xbI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
postPatch = ''
|
|
|
|
# https://github.com/axnsan12/drf-yasg/pull/710
|
2022-08-12 12:06:08 +00:00
|
|
|
sed -i "/packaging/d" requirements/base.txt
|
2021-04-05 15:23:46 +00:00
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
2021-06-04 09:07:49 +00:00
|
|
|
setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
inflection
|
2021-12-06 16:07:01 +00:00
|
|
|
ruamel-yaml
|
2020-04-24 23:36:52 +00:00
|
|
|
coreapi
|
|
|
|
djangorestframework
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-04-05 15:23:46 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-django
|
|
|
|
datadiff
|
|
|
|
];
|
|
|
|
|
|
|
|
# ImportError: No module named 'testproj.settings'
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "drf_yasg" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Generation of Swagger/OpenAPI schemas for Django REST Framework";
|
|
|
|
homepage = "https://github.com/axnsan12/drf-yasg";
|
2021-05-28 09:39:13 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|