1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5
6# build-system
7, hatchling
8
9# dependencies
10, beautifulsoup4
11, pillow
12, django
13}:
14
15buildPythonPackage rec {
16 pname = "django-bootstrap5";
17 version = "23.3";
18 format = "pyproject";
19 disabled = pythonOlder "3.7";
20
21 src = fetchFromGitHub {
22 owner = "zostera";
23 repo = "django-bootstrap5";
24 rev = "v${version}";
25 hash = "sha256-FIwDyZ5I/FSaEiQKRfanzAGij86u8y85Wal0B4TrI7c=";
26 };
27
28 nativeBuildInputs = [
29 hatchling
30 ];
31
32 propagatedBuildInputs = [
33 django
34 beautifulsoup4
35 pillow
36 ];
37
38 pythonImportsCheck = [
39 "django_bootstrap5"
40 ];
41
42 meta = with lib; {
43 description = "Bootstrap 5 integration with Django";
44 homepage = "https://github.com/zostera/django-bootstrap5";
45 changelog = "https://github.com/zostera/django-bootstrap5/blob/${src.rev}/CHANGELOG.md";
46 license = licenses.bsd3;
47 maintainers = with maintainers; [ netali ];
48 };
49}