BSD Ports

www/py-django-js-asset 4.1.0 NetBSD

Script tag with additional attributes for django.forms.Media

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
db43a5f3ee
License
modified-bsd
Categories
www, python
Package size
23.1 KiB, 89.0 KiB installed

Description

Script tag with additional attributes for django.forms.Media.

In the other systems

The newest version among them is 4.1.0, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
NetBSDwww/py-django-js-asset4.1.0 newestnone known-[email protected]2026-10-24
FreeBSDwww/py-django-js-asset4.1.0 newestnone known-[email protected]2026-08-29
DragonFlywww/py-django-js-asset3.1.2 behind since 2026-08-19none known-[email protected]-
HardenedBSDwww/py-django-js-asset4.1.0 newestno data-[email protected]-
GhostBSDwww/py-django-js-asset4.1.0 newestno data-[email protected]-

Compare across BSDs

Version history 2

  1. 4.2.0 db43a5f3ee
  2. 4.1.0 f449c03bfe

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

pkgin install py311-django-js-asset

From pkgsrc:

cd /usr/pkgsrc/www/py-django-js-asset && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_644.1.0
NetBSD 10.1 aarch644.1.0
SmartOS / illumos x86_644.2.0
macOS 15 arm644.1.0

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 2
Required by 1

Configuration

No options to configure.

Service scripts
none
Flavors
py312-django-js-asset-4.1.0, py313-django-js-asset-4.1.0, py314-django-js-asset-4.1.0

Commit history 2

DateCommitCreditsLog message
db43a5f3ee adam py-django-js-asset: updated to 4.2.0
4.2 (2026-09-24) - ``ImportMap`` now copies the data it is given, so changing the original dict no longer changes the import map (and its hash). - Deprecated ``ImportMap.update()``, import maps will become immutable. Use ``map1 | map2`` or ``map1 |= map2`` instead. - ``ImportMap.render()`` accepts ``attrs=`` like Django's ``MediaAsset.render()``. Empty import maps are falsy. - ``JSON.render()`` accepts ``attrs=`` too. It is ignored like ``nonce=``, since JSON data blocks are not governed by CSP.
f449c03bfe adam py-django-js-asset: updated to 4.1.0
4.1 (2026-08-28) - Fixed ``js_asset.Media`` crashing with an ``AttributeError`` when rendering an asset that only implements Django's plain ``__html__`` contract (neither a ``MediaAsset`` nor one of our ``ImportMap``/``JSON`` types). Such assets now fall back to ``__html__()`` exactly like ``django.forms.Media`` does; the nonce cannot be threaded into an opaque ``__html__`` asset, same as with stock Django. - Fixed ``js_asset.Media`` treating html-safe strings -- e.g. ``mark_safe('<script defer src="..."></script>')``, a long-documented Django idiom for embedding a complete asset tag -- as asset paths, so they were run through ``static()`` and percent-encoded instead of being rendered verbatim. Anything providing ``__html__()`` now takes the verbatim path, matching …