-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #284093 from onny/django-crispy5
python3Packages.django-crispy-bootstrap5: init at 2023.10
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
pkgs/development/python-modules/django-crispy-bootstrap5/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchFromGitHub | ||
, django | ||
, setuptools | ||
, pytestCheckHook | ||
, pytest-django | ||
, django-crispy-forms | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "django-crispy-bootstrap5"; | ||
version = "2023.10"; | ||
format = "pyproject"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "django-crispy-forms"; | ||
repo = "crispy-bootstrap5"; | ||
rev = "refs/tags/${version}"; | ||
hash = "sha256-AUMlLj3GmI+0vYw56Dw2+iF5s1l6GF+zV7PRD889ldg="; | ||
}; | ||
|
||
propagatedBuildInputs = [ | ||
django | ||
setuptools | ||
]; | ||
|
||
nativeCheckInputs = [ | ||
pytest-django | ||
pytestCheckHook | ||
django-crispy-forms | ||
]; | ||
|
||
pythonImportsCheck = [ "crispy_bootstrap5" ]; | ||
|
||
meta = with lib; { | ||
description = "Bootstrap 5 template pack for django-crispy-forms"; | ||
homepage = "https://github.com/django-crispy-forms/crispy-bootstrap5"; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ onny ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters