Files
nixpkgs/pkgs/development/python-modules/django-waffle/default.nix
Maximilian Bosch 9927ccc5a8 python3Packages.django-waffle: init at 5.0.0
Introduced as a new dependency for lausite-docs.

Co-Authored-By: Martin Weinelt <hexa@darmstadt.ccc.de>
2026-03-28 18:41:33 +01:00

49 lines
1.0 KiB
Nix

{
buildPythonPackage,
fetchFromGitHub,
django,
lib,
setuptools,
pytestCheckHook,
pytest-django,
}:
buildPythonPackage (finalAttrs: {
pname = "django-waffle";
version = "5.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "django-waffle";
repo = "django-waffle";
tag = "v${finalAttrs.version}";
hash = "sha256-wirB2Y4iONmAMVt9o8aTkeB1WQzcvktQOAMEeXMM1x8=";
};
patches = [
# Middleware object requires a request -> response callable
./middleware-compat.patch
];
build-system = [ setuptools ];
dependencies = [ django ];
nativeCheckInputs = [
pytest-django
pytestCheckHook
];
preCheck = ''
export DJANGO_SETTINGS_MODULE=test_settings
'';
meta = {
changelog = "https://github.com/django-waffle/django-waffle/releases/tag/${finalAttrs.src.tag}";
description = "Feature flipper for Django";
homepage = "https://waffle.readthedocs.io/en/stable/";
maintainers = [ lib.maintainers.ma27 ];
license = lib.licenses.bsd3;
};
})