Files
nixpkgs/pkgs/development/python-modules/django-js-asset/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

46 lines
982 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
django,
pytest-django,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "django-js-asset";
version = "3.1.2";
pyproject = true;
src = fetchFromGitHub {
owner = "matthiask";
repo = "django-js-asset";
tag = version;
hash = "sha256-OG31i8r6rwR2aDzraAorHdYrJrWt/e7SY9+iV7SJGJ8=";
};
build-system = [ hatchling ];
dependencies = [ django ];
pythonImportsCheck = [ "js_asset" ];
nativeCheckInputs = [
pytest-django
pytestCheckHook
];
preCheck = ''
export DJANGO_SETTINGS_MODULE=tests.testapp.settings
'';
meta = {
changelog = "https://github.com/matthiask/django-js-asset/blob/${version}/CHANGELOG.rst";
description = "Script tag with additional attributes for django.forms.Media";
homepage = "https://github.com/matthiask/django-js-asset";
maintainers = with lib.maintainers; [ hexa ];
license = with lib.licenses; [ bsd3 ];
};
}