Files
nixpkgs/pkgs/development/python-modules/django-htmx/default.nix
2025-09-23 11:41:34 +00:00

48 lines
962 B
Nix

{
lib,
asgiref,
buildPythonPackage,
django,
fetchFromGitHub,
pytest-django,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "django-htmx";
version = "1.26.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "adamchainz";
repo = "django-htmx";
rev = version;
hash = "sha256-cJpZsjPAg1ss1dxhvjY+Xw29xAzuHzlVSDxUfAU9fgI=";
};
build-system = [ setuptools ];
buildInputs = [ django ];
dependencies = [ asgiref ];
nativeCheckInputs = [
pytestCheckHook
pytest-django
];
pythonImportsCheck = [ "django_htmx" ];
meta = {
description = "Extensions for using Django with htmx";
homepage = "https://github.com/adamchainz/django-htmx";
changelog = "https://github.com/adamchainz/django-htmx/blob/${version}/docs/changelog.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ minijackson ];
};
}