blob: b0a11d9044d3780327902bbcf3b0b2522280c8e9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
{ lib
, buildPythonPackage
, fetchFromGitHub
# build-system
, setuptools
, setuptools-scm
# non-propagates
, django
# dependencies
, beautifulsoup4
# tests
, python
}:
buildPythonPackage rec {
pname = "django-bootstrap4";
version = "24.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "zostera";
repo = "django-bootstrap4";
rev = "refs/tags/v${version}";
hash = "sha256-TCHie5h/VRJ9NSg7wKnWotFHm328kxIp+xFXEa8wL1c=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [
beautifulsoup4
];
pythonImportsCheck = [
"bootstrap4"
];
nativeCheckInputs = [
(django.override { withGdal = true; })
];
checkPhase = ''
runHook preCheck
${python.interpreter} manage.py test -v1 --noinput
runHook postCheck
'';
meta = with lib; {
description = "Bootstrap 4 integration with Django";
homepage = "https://github.com/zostera/django-bootstrap4";
changelog = "https://github.com/zostera/django-bootstrap4/blob/${src.rev}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ hexa ];
};
}
|