Update aider (#375634)
[NixPkgs.git] / pkgs / development / python-modules / django-crispy-forms / default.nix
blob68513dd4beec2a382102107f34a25e61bc659ab3
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   django,
6   setuptools,
7   pytestCheckHook,
8   pytest-django,
9 }:
11 buildPythonPackage rec {
12   pname = "django-crispy-forms";
13   version = "2.3";
14   format = "pyproject";
16   src = fetchFromGitHub {
17     owner = "django-crispy-forms";
18     repo = "django-crispy-forms";
19     tag = version;
20     hash = "sha256-R2s2dUsVw5p7xn4yWeFcE7au8yHWXjFgS5jjCBveg04=";
21   };
23   propagatedBuildInputs = [
24     django
25     setuptools
26   ];
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;
31   nativeCheckInputs = [
32     pytest-django
33     pytestCheckHook
34   ];
36   pytestFlagsArray = [
37     "--ds=crispy_forms.tests.test_settings"
38     "crispy_forms/tests/"
39   ];
41   pythonImportsCheck = [ "crispy_forms" ];
43   meta = with lib; {
44     description = "Best way to have DRY Django forms";
45     homepage = "https://django-crispy-forms.readthedocs.io/en/latest/";
46     license = licenses.mit;
47     maintainers = with maintainers; [ ambroisie ];
48   };