mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-28 11:14:46 +00:00
45 lines
914 B
Nix
45 lines
914 B
Nix
{
|
|
lib,
|
|
asgiref,
|
|
buildPythonPackage,
|
|
django,
|
|
fetchFromGitHub,
|
|
pytest-django,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-htmx";
|
|
version = "1.28.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "adamchainz";
|
|
repo = "django-htmx";
|
|
tag = version;
|
|
hash = "sha256-24TVOaV0VKFq506XSJ9q86sYifKOjNHeAjSskyhcst0=";
|
|
};
|
|
|
|
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/${src.tag}/docs/changelog.rst";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ minijackson ];
|
|
};
|
|
}
|