Commit 9ac9ea24 authored by Jonas Heinrich's avatar Jonas Heinrich Committed by Yt
Browse files

python3Packages.django-crispy-bootstrap4: init at 2023.1

parent f3eea3ca
Loading
Loading
Loading
Loading
+42 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, django
, setuptools
, pytestCheckHook
, pytest-django
, django-crispy-forms
}:

buildPythonPackage rec {
  pname = "django-crispy-bootstrap4";
  version = "2023.1";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "django-crispy-forms";
    repo = "crispy-bootstrap4";
    rev = "refs/tags/${version}";
    hash = "sha256-4p6dlyQYZGyfBntTuzCjikL8ZG/4xDnTiQ1rCVt0Hbk=";
  };

  propagatedBuildInputs = [
    django
    setuptools
  ];

  nativeCheckInputs = [
    pytest-django
    pytestCheckHook
    django-crispy-forms
  ];

  pythonImportsCheck = [ "crispy_bootstrap4" ];

  meta = with lib; {
    description = "Bootstrap 4 template pack for django-crispy-forms";
    homepage = "https://github.com/django-crispy-forms/crispy-bootstrap4";
    license = licenses.mit;
    maintainers = with maintainers; [ onny ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -2958,6 +2958,8 @@ self: super: with self; {
  django-countries = callPackage ../development/python-modules/django-countries { };
  django-crispy-bootstrap4 = callPackage ../development/python-modules/django-crispy-bootstrap4 { };
  django-crispy-forms = callPackage ../development/python-modules/django-crispy-forms { };
  django-cryptography = callPackage ../development/python-modules/django-cryptography { };