Files
nixpkgs/pkgs/development/python-modules/django-minify-html/default.nix
T
Martin Weinelt 1ac82f17ea python3Packages.django-minify-html: init at 1.14.0
New dependency for pretalx.
2025-11-30 21:38:33 +01:00

62 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
asgiref,
django,
minify-html,
# tests
pytest-django,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "django-minify-html";
version = "1.14.0";
pyproject = true;
src = fetchFromGitHub {
owner = "adamchainz";
repo = "django-minify-html";
tag = version;
hash = "sha256-mTFHIZo1E9+d7bOfelFCUZRt5eEo6w+xKB5qf9jc8hY=";
};
build-system = [
setuptools
];
dependencies = [
asgiref
django
minify-html
];
nativeCheckInputs = [
pytest-django
pytestCheckHook
];
preCheck = ''
export DJANGO_SETTINGS_MODULE=tests.settings
'';
pythonImportsCheck = [
"django_minify_html"
];
meta = {
description = "Use minify-html, the extremely fast HTML + JS + CSS minifier, with Django";
homepage = "https://github.com/adamchainz/django-minify-html";
changelog = "https://github.com/adamchainz/django-minify-html/blob/${src.rev}/CHANGELOG.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
};
}