1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, django 5, pytestCheckHook 6, pytest-django 7}: 8 9buildPythonPackage rec { 10 pname = "django-crispy-forms"; 11 version = "1.14.0"; 12 13 src = fetchFromGitHub { 14 owner = "django-crispy-forms"; 15 repo = "django-crispy-forms"; 16 rev = version; 17 sha256 = "sha256-NZ2lWxsQHc7Qc4HDoWgjJTZ/bJHmjpBf3q1LVLtzA+8="; 18 }; 19 20 propagatedBuildInputs = [ 21 django 22 ]; 23 24 # FIXME: RuntimeError: Model class source.crispy_forms.tests.forms.CrispyTestModel doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS. 25 doCheck = false; 26 27 checkInputs = [ 28 pytest-django 29 pytestCheckHook 30 ]; 31 32 pytestFlagsArray = [ 33 "--ds=crispy_forms.tests.test_settings" 34 "crispy_forms/tests/" 35 ]; 36 37 pythonImportsCheck = [ "crispy_forms" ]; 38 39 meta = with lib; { 40 description = "The best way to have DRY Django forms."; 41 homepage = "https://django-crispy-forms.readthedocs.io/en/latest/"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ ambroisie ]; 44 }; 45}