2021-03-21 00:39:46 +01:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, lib
|
|
|
|
, django
|
|
|
|
, funcy
|
|
|
|
, redis
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-cacheops";
|
2021-08-26 21:38:06 +02:00
|
|
|
version = "6.0";
|
2021-03-21 00:39:46 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-26 21:38:06 +02:00
|
|
|
sha256 = "78e161ebd96a32e28e19ec7da31f2afed9e62a79726b8b5f0ed12dd16c2e5841";
|
2021-03-21 00:39:46 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|