Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 74 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475{ 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.10"; pyproject = true;
src = fetchPypi { inherit pname version; hash = "sha256-+G1Q+u48MfzsRUWYWocfgyNmx/tbd7YsSAidVuz0+NQ="; };
postPatch = '' # https://github.com/axnsan12/drf-yasg/pull/710 sed -i "/packaging/d" requirements/base.txt '';
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 = with lib; { description = "Generation of Swagger/OpenAPI schemas for Django REST Framework"; homepage = "https://github.com/axnsan12/drf-yasg"; maintainers = [ ]; license = licenses.bsd3; };}