15 buildPythonPackage rec {
16 pname = "flask-caching";
18 format = "setuptools";
19 disabled = pythonOlder "3.7";
22 pname = "flask_caching";
24 hash = "sha256-1+TKZKM7Sf6zOfzdF+a6JfXgEWjPiF5TeQ6IX4Ok0s8=";
28 substituteInPlace setup.py \
29 --replace "cachelib >= 0.9.0, < 0.10.0" "cachelib"
32 propagatedBuildInputs = [
46 # backend_cache relies on pytest-cache, which is a stale package from 2013
52 ++ lib.optionals stdenv.hostPlatform.isDarwin [
54 "test_cache_timeout_dynamic"
55 "test_cached_view_class"
59 description = "Caching extension for Flask";
60 homepage = "https://github.com/pallets-eco/flask-caching";
61 changelog = "https://github.com/pallets-eco/flask-caching/blob/v${version}/CHANGES.rst";
63 license = licenses.bsd3;