saunafs: 4.6.0 -> 4.7.0 (#379649)
[NixPkgs.git] / pkgs / development / python-modules / django-bootstrap4 / default.nix
blob4d6ff7c41adfb5e0fdd2e772a525abcc255f29c2
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
6   # build-system
7   setuptools,
8   setuptools-scm,
10   # non-propagates
11   django,
13   # dependencies
14   beautifulsoup4,
16   # tests
17   python,
18   pytest-django,
19   pytestCheckHook,
22 buildPythonPackage rec {
23   pname = "django-bootstrap4";
24   version = "24.4";
25   pyproject = true;
27   src = fetchFromGitHub {
28     owner = "zostera";
29     repo = "django-bootstrap4";
30     tag = "v${version}";
31     hash = "sha256-9URZ+10GVX171Zht49UQEDkVOZ7LfOtUvapLydzNAlk=";
32   };
34   build-system = [
35     setuptools
36     setuptools-scm
37   ];
39   dependencies = [ beautifulsoup4 ];
41   pythonImportsCheck = [ "bootstrap4" ];
43   nativeCheckInputs = [
44     (django.override { withGdal = true; })
45     pytest-django
46     pytestCheckHook
47   ];
49   preCheck = ''
50     export DJANGO_SETTINGS_MODULE=tests.app.settings
51   '';
53   meta = with lib; {
54     description = "Bootstrap 4 integration with Django";
55     homepage = "https://github.com/zostera/django-bootstrap4";
56     changelog = "https://github.com/zostera/django-bootstrap4/blob/${src.rev}/CHANGELOG.md";
57     license = licenses.bsd3;
58     maintainers = with maintainers; [ hexa ];
59   };