1{
2 lib,
3 asgiref,
4 buildPythonPackage,
5 django,
6 fetchFromGitHub,
7 pytest-django,
8 pytestCheckHook,
9 pythonOlder,
10 setuptools,
11}:
12
13buildPythonPackage rec {
14 pname = "django-htmx";
15 version = "1.26.0";
16 pyproject = true;
17
18 disabled = pythonOlder "3.9";
19
20 src = fetchFromGitHub {
21 owner = "adamchainz";
22 repo = "django-htmx";
23 rev = version;
24 hash = "sha256-cJpZsjPAg1ss1dxhvjY+Xw29xAzuHzlVSDxUfAU9fgI=";
25 };
26
27 build-system = [ setuptools ];
28
29 buildInputs = [ django ];
30
31 dependencies = [ asgiref ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 pytest-django
36 ];
37
38 pythonImportsCheck = [ "django_htmx" ];
39
40 meta = {
41 description = "Extensions for using Django with htmx";
42 homepage = "https://github.com/adamchainz/django-htmx";
43 changelog = "https://github.com/adamchainz/django-htmx/blob/${version}/docs/changelog.rst";
44 license = lib.licenses.mit;
45 maintainers = with lib.maintainers; [ minijackson ];
46 };
47}