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