567e8dfd8e
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>
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
django,
|
|
setuptools,
|
|
pytestCheckHook,
|
|
pytest-django,
|
|
django-crispy-forms,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "crispy-bootstrap3";
|
|
version = "2024.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "django-crispy-forms";
|
|
repo = "crispy-bootstrap3";
|
|
tag = version;
|
|
hash = "sha256-w5CGWf14Wa8hndpk5r4hlz6gGykvRL+1AhA5Pz5Ejtk=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
django
|
|
django-crispy-forms
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-django
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "crispy_bootstrap3" ];
|
|
|
|
# Tests are broken on Django >= 5.1
|
|
# https://github.com/django-crispy-forms/crispy-bootstrap3/issues/12
|
|
doCheck = lib.versionOlder django.version "5.1";
|
|
|
|
meta = {
|
|
description = "Bootstrap 3 template pack for django-crispy-forms";
|
|
homepage = "https://github.com/django-crispy-forms/crispy-bootstrap3";
|
|
changelog = "https://github.com/django-crispy-forms/crispy-bootstrap3/blob/${version}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ erictapen ];
|
|
};
|
|
}
|