mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00

This reverts commit65a333600d
. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
63 lines
1.4 KiB
Nix
63 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
beautifulsoup4,
|
|
buildPythonPackage,
|
|
django,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
jinja2,
|
|
pillow,
|
|
pytest-django,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-bootstrap5";
|
|
version = "25.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zostera";
|
|
repo = "django-bootstrap5";
|
|
rev = "v${version}";
|
|
hash = "sha256-5VYw9Kq33/YFW9mFzkFzhrxavfx6r/CtC1SJhZbanhg=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [ django ];
|
|
|
|
optional-dependencies = {
|
|
jinja = [ jinja2 ];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
beautifulsoup4
|
|
(django.override { withGdal = true; })
|
|
pillow
|
|
pytest-django
|
|
pytestCheckHook
|
|
] ++ lib.flatten (lib.attrValues optional-dependencies);
|
|
|
|
preCheck = ''
|
|
export DJANGO_SETTINGS_MODULE=tests.app.settings
|
|
'';
|
|
|
|
disabledTests = [
|
|
# urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution>
|
|
"test_get_bootstrap_setting"
|
|
];
|
|
|
|
pythonImportsCheck = [ "django_bootstrap5" ];
|
|
|
|
meta = with lib; {
|
|
description = "Bootstrap 5 integration with Django";
|
|
homepage = "https://github.com/zostera/django-bootstrap5";
|
|
changelog = "https://github.com/zostera/django-bootstrap5/blob/${src.rev}/CHANGELOG.md";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ netali ];
|
|
};
|
|
}
|