2019-08-12 19:53:25 +00:00
|
|
|
{
|
2021-01-25 08:26:54 +00:00
|
|
|
lib,
|
2019-08-12 19:53:25 +00:00
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
inflection,
|
|
|
|
ruamel_yaml,
|
|
|
|
setuptools_scm,
|
|
|
|
six,
|
|
|
|
coreapi,
|
|
|
|
djangorestframework,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "drf-yasg";
|
2020-10-28 08:35:44 +00:00
|
|
|
version = "1.20.0";
|
2019-08-12 19:53:25 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-28 08:35:44 +00:00
|
|
|
sha256 = "d50f197c7f02545d0b736df88c6d5cf874f8fea2507ad85ad7de6ae5bf2d9e5a";
|
2019-08-12 19:53:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools_scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
inflection
|
|
|
|
ruamel_yaml
|
|
|
|
coreapi
|
|
|
|
djangorestframework
|
|
|
|
];
|
|
|
|
|
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";
|
2019-08-12 19:53:25 +00:00
|
|
|
maintainers = with maintainers; [ ivegotasthma ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|