2021-03-23 19:22:30 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, lib
|
|
|
|
, django
|
|
|
|
, funcy
|
|
|
|
, redis
|
|
|
|
, six
|
2022-09-09 14:08:57 +00:00
|
|
|
, pytest-django
|
|
|
|
, pytestCheckHook
|
2021-03-23 19:22:30 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-cacheops";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "6.1";
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "sha256-toTvOf1DQYnTy7fYVBfNlyr2NSiaAyRHmCRztKifcn0=";
|
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";
|
|
|
|
license = licenses.bsd3;
|
2022-09-09 14:08:57 +00:00
|
|
|
maintainers = with maintainers; [ onny ];
|
2021-03-23 19:22:30 +00:00
|
|
|
};
|
|
|
|
}
|