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";
|
2022-06-21 00:33:25 +00:00
|
|
|
version = "1.11.1";
|
|
|
|
disabled = pythonOlder "3.7";
|
2018-06-29 17:21:58 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-06-21 00:33:25 +00:00
|
|
|
sha256 = "28af189e97defb9e39b43ebe197b54a58aaee81bdeb759f46d969c26d7aa7810";
|
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;
|
|
|
|
};
|
|
|
|
}
|