2020-04-24 23:36:52 +00:00
|
|
|
{
|
2021-02-05 17:12:51 +00:00
|
|
|
lib,
|
2020-04-24 23:36:52 +00:00
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
inflection,
|
|
|
|
ruamel_yaml,
|
|
|
|
setuptools_scm,
|
|
|
|
six,
|
|
|
|
coreapi,
|
|
|
|
djangorestframework,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "drf-yasg";
|
2020-11-03 02:18:15 +00:00
|
|
|
version = "1.20.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-03 02:18:15 +00:00
|
|
|
sha256 = "d50f197c7f02545d0b736df88c6d5cf874f8fea2507ad85ad7de6ae5bf2d9e5a";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools_scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
inflection
|
|
|
|
ruamel_yaml
|
|
|
|
coreapi
|
|
|
|
djangorestframework
|
|
|
|
];
|
|
|
|
|
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";
|
|
|
|
maintainers = with maintainers; [ ivegotasthma ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|