Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 django,
6 setuptools,
7 pytestCheckHook,
8 pytest-django,
9}:
10
11buildPythonPackage (finalAttrs: {
12 pname = "django-crispy-forms";
13 version = "2.5";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "django-crispy-forms";
18 repo = "django-crispy-forms";
19 tag = finalAttrs.version;
20 hash = "sha256-UZw860dOmQOAHcOPn5JO5OPe0kei4Mivy5FTh25Zo1s=";
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 = {
47 description = "Best way to have DRY Django forms";
48 homepage = "https://django-crispy-forms.readthedocs.io/en/latest/";
49 license = lib.licenses.mit;
50 maintainers = with lib.maintainers; [ ambroisie ];
51 };
52})