zimbatm 39c01d22bf net-tools: rename from nettools
By being in sync with the pname, it makes it easier to walk back from
the pname that shows in the /nix/store back to the attribute.

This change should not cause any rebuild.
2025-06-21 19:57:36 +02: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 = with lib; {
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 = licenses.bsd3;
maintainers = with maintainers; [ onny ];
};
}