1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, django 5, setuptools 6, pytestCheckHook 7, pytest-django 8}: 9 10buildPythonPackage rec { 11 pname = "django-crispy-forms"; 12 version = "2.1"; 13 format = "pyproject"; 14 15 src = fetchFromGitHub { 16 owner = "django-crispy-forms"; 17 repo = "django-crispy-forms"; 18 rev = "refs/tags/${version}"; 19 hash = "sha256-UQ5m0JWir20TdLgS+DVVLcMBlIEIfmzv8pkMJtaC0LA="; 20 }; 21 22 propagatedBuildInputs = [ 23 django 24 setuptools 25 ]; 26 27 # 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. 28 doCheck = false; 29 30 nativeCheckInputs = [ 31 pytest-django 32 pytestCheckHook 33 ]; 34 35 pytestFlagsArray = [ 36 "--ds=crispy_forms.tests.test_settings" 37 "crispy_forms/tests/" 38 ]; 39 40 pythonImportsCheck = [ "crispy_forms" ]; 41 42 meta = with lib; { 43 description = "The best way to have DRY Django forms."; 44 homepage = "https://django-crispy-forms.readthedocs.io/en/latest/"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ ambroisie ]; 47 }; 48}