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