2023-03-04 12:14:45 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-03-23 19:22:30 +00:00
|
|
|
, fetchPypi
|
|
|
|
, django
|
|
|
|
, funcy
|
|
|
|
, redis
|
2022-09-09 14:08:57 +00:00
|
|
|
, pytest-django
|
|
|
|
, pytestCheckHook
|
2023-03-04 12:14:45 +00:00
|
|
|
, pythonOlder
|
|
|
|
, six
|
2021-03-23 19:22:30 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-cacheops";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "6.2";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-04 12:14:45 +00:00
|
|
|
hash = "sha256-zHP9ChwUeZJT/yCopFeRo8jSgCIXswHnDPoIroGeQ48=";
|
2021-03-23 19:22:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
|
|
|
funcy
|
|
|
|
redis
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-09-09 14:08:57 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-django
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Tests require networking
|
|
|
|
"test_cached_as"
|
|
|
|
"test_invalidation_signal"
|
|
|
|
"test_queryset"
|
|
|
|
"test_queryset_empty"
|
|
|
|
"test_lock"
|
|
|
|
"test_context_manager"
|
|
|
|
"test_decorator"
|
|
|
|
"test_in_transaction"
|
|
|
|
"test_nested"
|
|
|
|
"test_unhashable_args"
|
|
|
|
"test_db_agnostic_by_default"
|
|
|
|
"test_db_agnostic_disabled"
|
|
|
|
];
|
|
|
|
|
|
|
|
DJANGO_SETTINGS_MODULE = "tests.settings";
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A slick ORM cache with automatic granular event-driven invalidation for Django";
|
|
|
|
homepage = "https://github.com/Suor/django-cacheops";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/Suor/django-cacheops/blob/${version}/CHANGELOG";
|
2021-03-23 19:22:30 +00:00
|
|
|
license = licenses.bsd3;
|
2022-09-09 14:08:57 +00:00
|
|
|
maintainers = with maintainers; [ onny ];
|
2021-03-23 19:22:30 +00:00
|
|
|
};
|
|
|
|
}
|