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";
|
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
|
|
|
};
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
postPatch = ''
|
|
|
|
# https://github.com/axnsan12/drf-yasg/pull/710
|
|
|
|
substituteInPlace requirements/base.txt --replace packaging ""
|
|
|
|
'';
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
checkInputs = [
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|