2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# build-system
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
2023-08-10 07:59:29 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# non-propagates
|
|
|
|
django,
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# dependencies
|
|
|
|
beautifulsoup4,
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# tests
|
|
|
|
python,
|
2024-10-04 16:56:33 +00:00
|
|
|
pytest-django,
|
|
|
|
pytestCheckHook,
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-bootstrap4";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "24.4";
|
|
|
|
pyproject = true;
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zostera";
|
|
|
|
repo = "django-bootstrap4";
|
2023-08-10 07:59:29 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-9URZ+10GVX171Zht49UQEDkVOZ7LfOtUvapLydzNAlk=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
build-system = [
|
2024-01-13 08:15:51 +00:00
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
2023-05-24 13:37:59 +00:00
|
|
|
];
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
dependencies = [ beautifulsoup4 ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "bootstrap4" ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
(django.override { withGdal = true; })
|
|
|
|
pytest-django
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
preCheck = ''
|
|
|
|
export DJANGO_SETTINGS_MODULE=tests.app.settings
|
2023-05-24 13:37:59 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|