Something went wrong. Try again.
lol
Something went wrong. Try again.
1.3 kB · 75 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576{ lib, buildPythonPackage, fetchPypi, setuptools, setuptools-scm, django, djangorestframework, inflection, packaging, pytz, pyyaml, uritemplate, datadiff, dj-database-url, pytest-django, pytestCheckHook,}:
buildPythonPackage rec { pname = "drf-yasg"; version = "1.21.15"; pyproject = true;
src = fetchPypi { inherit version; pname = "drf_yasg"; hash = "sha256-74aDjE7xDc06wevyvmAcvgKXi5mWccqkNmf3yduWFGg="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "setuptools-scm ~= 7.0" "setuptools-scm >= 7.0" '';
build-system = [ setuptools setuptools-scm ];
dependencies = [ django djangorestframework inflection packaging pytz pyyaml uritemplate ];
nativeCheckInputs = [ pytestCheckHook pytest-django datadiff dj-database-url ];
env.DJANGO_SETTINGS_MODULE = "testproj.settings.local";
preCheck = '' cd testproj '';
# a lot of libraries are missing doCheck = false;
pythonImportsCheck = [ "drf_yasg" ];
meta = { description = "Generation of Swagger/OpenAPI schemas for Django REST Framework"; homepage = "https://github.com/axnsan12/drf-yasg"; maintainers = [ ]; license = lib.licenses.bsd3; };}