2019-08-12 20:53:25 +01:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
inflection,
|
|
|
|
ruamel_yaml,
|
|
|
|
setuptools_scm,
|
|
|
|
six,
|
|
|
|
coreapi,
|
|
|
|
djangorestframework,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "drf-yasg";
|
2020-06-06 07:47:06 +01:00
|
|
|
version = "1.17.1";
|
2019-08-12 20:53:25 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:06 +01:00
|
|
|
sha256 = "5572e9d5baab9f6b49318169df9789f7399d0e3c7bdac8fdb8dfccf1d5d2b1ca";
|
2019-08-12 20:53:25 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools_scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
inflection
|
|
|
|
ruamel_yaml
|
|
|
|
coreapi
|
|
|
|
djangorestframework
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Generation of Swagger/OpenAPI schemas for Django REST Framework";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/axnsan12/drf-yasg";
|
2019-08-12 20:53:25 +01:00
|
|
|
maintainers = with maintainers; [ ivegotasthma ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|