Files
nixpkgs/pkgs/development/python-modules/crispy-bootstrap4/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

46 lines
982 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
django,
setuptools,
pytestCheckHook,
pytest-django,
django-crispy-forms,
}:
buildPythonPackage rec {
pname = "crispy-bootstrap4";
version = "2025.6";
pyproject = true;
src = fetchFromGitHub {
owner = "django-crispy-forms";
repo = "crispy-bootstrap4";
tag = version;
hash = "sha256-2W5tswtRqXdS1nef/2Q/jdX3e3nHYF3v4HiyNF723k8=";
};
build-system = [ setuptools ];
dependencies = [
django
django-crispy-forms
];
nativeCheckInputs = [
pytest-django
pytestCheckHook
];
pythonImportsCheck = [ "crispy_bootstrap4" ];
meta = {
description = "Bootstrap 4 template pack for django-crispy-forms";
homepage = "https://github.com/django-crispy-forms/crispy-bootstrap4";
changelog = "https://github.com/django-crispy-forms/crispy-bootstrap4/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ onny ];
};
}