4d5a95770c
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
62 lines
1.2 KiB
Nix
62 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, django
|
|
, funcy
|
|
, redis
|
|
, pytest-django
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-cacheops";
|
|
version = "6.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-zHP9ChwUeZJT/yCopFeRo8jSgCIXswHnDPoIroGeQ48=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
django
|
|
funcy
|
|
redis
|
|
six
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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";
|
|
|
|
meta = with lib; {
|
|
description = "A 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 ];
|
|
};
|
|
}
|