Something went wrong. Try again.
lol
Something went wrong. Try again.
1.3 kB · 67 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{ lib, buildPythonPackage, fetchFromGitHub,
# build-system setuptools,
# dependencies django, jinja2,
# tests pytest-django, pytestCheckHook,}:
buildPythonPackage rec { pname = "django-jinja"; version = "2.11.0"; pyproject = true;
src = fetchFromGitHub { owner = "niwinz"; repo = "django-jinja"; tag = version; hash = "sha256-0gkv9xinHux8TRiNBLl/JgcimXU3CzysxzGR2jn7OZ4="; };
build-system = [ setuptools ];
dependencies = [ django jinja2 ];
nativeCheckInputs = [ pytestCheckHook pytest-django ];
preCheck = '' pushd testing export DJANGO_SETTINGS_MODULE=settings '';
pytestFlagsArray = [ "testapp/tests.py" ];
disabledTests = lib.optionals (lib.versionAtLeast django.version "5.2") [ # https://github.com/niwinz/django-jinja/issues/317 "test_autoscape_with_form_errors" ];
postCheck = '' popd '';
meta = { description = "Simple and nonobstructive jinja2 integration with Django"; homepage = "https://github.com/niwinz/django-jinja"; changelog = "https://github.com/niwinz/django-jinja/blob/${src.rev}/CHANGES.adoc"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ dotlambda ]; };}