Files
nixpkgs/pkgs/development/python-modules/django-crispy-forms/default.nix
T
Michael Daniels 075e8c2c4f treewide: change 'format = "pyproject";' to 'pyproject = true;'
This is almost all find-and-replace.

I manually edited:
* pkgs/development/python-modules/notifications-android-tv/default.nix,
* pkgs/servers/home-assistant/default.nix,
* pkgs/development/tools/continuous-integration/buildbot/master.nix

A few files have not been changed in this PR because they would cause rebuilds.

This PR should have 0 rebuilds.
2026-01-12 17:50:35 -05:00

53 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
django,
setuptools,
pytestCheckHook,
pytest-django,
}:
buildPythonPackage (finalAttrs: {
pname = "django-crispy-forms";
version = "2.5";
pyproject = true;
src = fetchFromGitHub {
owner = "django-crispy-forms";
repo = "django-crispy-forms";
tag = finalAttrs.version;
hash = "sha256-UZw860dOmQOAHcOPn5JO5OPe0kei4Mivy5FTh25Zo1s=";
};
propagatedBuildInputs = [
django
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
];
pytestFlags = [
"--ds=crispy_forms.tests.test_settings"
];
enabledTestPaths = [
"crispy_forms/tests/"
];
pythonImportsCheck = [ "crispy_forms" ];
meta = {
description = "Best way to have DRY Django forms";
homepage = "https://django-crispy-forms.readthedocs.io/en/latest/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ambroisie ];
};
})