2023-04-29 16:46:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-08-10 07:59:29 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
|
|
|
|
# build-system
|
2024-01-13 08:15:51 +00:00
|
|
|
, setuptools
|
|
|
|
, setuptools-scm
|
2023-08-10 07:59:29 +00:00
|
|
|
|
|
|
|
# non-propagates
|
2023-04-29 16:46:19 +00:00
|
|
|
, django
|
2023-08-10 07:59:29 +00:00
|
|
|
|
|
|
|
# tests
|
2023-04-29 16:46:19 +00:00
|
|
|
, pytest-django
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-bootstrap3";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "24.2";
|
2023-04-29 16:46:19 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zostera";
|
|
|
|
repo = "django-bootstrap3";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-5nBJ5vfsoGoaG1s3K1hCHcSnGf51ZirYYg+uJGsBmG8=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2024-01-13 08:15:51 +00:00
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
2023-04-29 16:46:19 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
django
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"bootstrap3"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest-django
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
env.DJANGO_SETTINGS_MODULE = "tests.app.settings";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Bootstrap 3 integration for Django";
|
|
|
|
homepage = "https://github.com/zostera/django-bootstrap3";
|
2023-08-10 07:59:29 +00:00
|
|
|
changelog = "https://github.com/zostera/django-bootstrap3/blob/v${version}/CHANGELOG.md";
|
2023-04-29 16:46:19 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|