nixpkgs/pkgs/development/python-modules/django-crispy-forms/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1.1 KiB
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
fetchFromGitHub,
django,
2023-04-04 06:18:44 +00:00
setuptools,
pytestCheckHook,
pytest-django,
}:
buildPythonPackage rec {
pname = "django-crispy-forms";
version = "2.3";
2023-04-04 06:18:44 +00:00
format = "pyproject";
src = fetchFromGitHub {
owner = "django-crispy-forms";
repo = "django-crispy-forms";
rev = "refs/tags/${version}";
hash = "sha256-R2s2dUsVw5p7xn4yWeFcE7au8yHWXjFgS5jjCBveg04=";
};
propagatedBuildInputs = [
django
2023-04-04 06:18:44 +00:00
setuptools
];
# 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.
doCheck = false;
nativeCheckInputs = [
pytest-django
pytestCheckHook
];
pytestFlagsArray = [
"--ds=crispy_forms.tests.test_settings"
"crispy_forms/tests/"
];
pythonImportsCheck = [ "crispy_forms" ];
meta = with lib; {
description = "Best way to have DRY Django forms";
homepage = "https://django-crispy-forms.readthedocs.io/en/latest/";
license = licenses.mit;
maintainers = with maintainers; [ ambroisie ];
};
}