Files
nixpkgs/pkgs/development/python-modules/django-cacheops/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

67 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
django,
funcy,
redis,
redisTestHook,
six,
pytestCheckHook,
pytest-django,
mock,
dill,
jinja2,
before-after,
net-tools,
pkgs,
setuptools,
}:
buildPythonPackage rec {
pname = "django-cacheops";
version = "7.2";
pyproject = true;
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 ];
};
}