depot/third_party/nixpkgs/pkgs/development/python-modules/django-bootstrap4/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

60 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
setuptools-scm,
# non-propagates
django,
# dependencies
beautifulsoup4,
# tests
python,
pytest-django,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "django-bootstrap4";
version = "24.4";
pyproject = true;
src = fetchFromGitHub {
owner = "zostera";
repo = "django-bootstrap4";
rev = "refs/tags/v${version}";
hash = "sha256-9URZ+10GVX171Zht49UQEDkVOZ7LfOtUvapLydzNAlk=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [ beautifulsoup4 ];
pythonImportsCheck = [ "bootstrap4" ];
nativeCheckInputs = [
(django.override { withGdal = true; })
pytest-django
pytestCheckHook
];
preCheck = ''
export DJANGO_SETTINGS_MODULE=tests.app.settings
'';
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 ];
};
}