2022-06-21 00:33:25 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, cachelib
|
|
|
|
, flask
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-xprocess
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2018-06-29 17:21:58 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Flask-Caching";
|
2023-01-13 07:33:52 +00:00
|
|
|
version = "2.0.2";
|
2022-07-16 10:59:07 +00:00
|
|
|
format = "setuptools";
|
2022-06-21 00:33:25 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2018-06-29 17:21:58 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-01-13 07:33:52 +00:00
|
|
|
sha256 = "sha256-JLYMVS1ZqWBcwbakLFbNs5qCoo2rRTK77bkiKuVOy04=";
|
2018-06-29 17:21:58 +00:00
|
|
|
};
|
|
|
|
|
2022-06-21 00:33:25 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cachelib
|
|
|
|
flask
|
|
|
|
];
|
2018-06-29 17:21:58 +00:00
|
|
|
|
2022-06-21 00:33:25 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-xprocess
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-06-29 17:21:58 +00:00
|
|
|
|
2021-04-21 18:36:16 +00:00
|
|
|
disabledTests = [
|
|
|
|
# backend_cache relies on pytest-cache, which is a stale package from 2013
|
|
|
|
"backend_cache"
|
|
|
|
# optional backends
|
|
|
|
"Redis"
|
|
|
|
"Memcache"
|
|
|
|
];
|
2018-06-29 17:21:58 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Adds caching support to your Flask application";
|
2019-07-08 05:48:42 +00:00
|
|
|
homepage = "https://github.com/sh4nks/flask-caching";
|
2018-06-29 17:21:58 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|