Files
nixpkgs/pkgs/development/python-modules/django-cacheops/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

70 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
django,
funcy,
redis,
redisTestHook,
six,
pytestCheckHook,
pytest-django,
mock,
dill,
jinja2,
before-after,
pythonOlder,
net-tools,
pkgs,
setuptools,
}:
buildPythonPackage rec {
pname = "django-cacheops";
version = "7.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "django_cacheops";
inherit version;
hash = "sha256-y8EcwDISlaNkTie8smlA8Iy5wucdPuUGy8/wvdoanzM=";
};
pythonRelaxDeps = [ "funcy" ];
build-system = [ setuptools ];
dependencies = [
django
funcy
redis
six
];
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [
pytestCheckHook
pytest-django
mock
dill
jinja2
before-after
net-tools
pkgs.valkey
redisTestHook
];
DJANGO_SETTINGS_MODULE = "tests.settings";
meta = {
description = "Slick ORM cache with automatic granular event-driven invalidation for Django";
homepage = "https://github.com/Suor/django-cacheops";
changelog = "https://github.com/Suor/django-cacheops/blob/${version}/CHANGELOG";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ onny ];
};
}