2021-03-23 19:22:30 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, lib
|
|
|
|
, django
|
|
|
|
, funcy
|
|
|
|
, redis
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
# tests need a redis server
|
|
|
|
# pythonImportsCheck not possible since DJANGO_SETTINGS_MODULE needs to be set
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
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;
|
|
|
|
maintainers = with maintainers; [ petabyteboy ];
|
|
|
|
};
|
|
|
|
}
|