Files
nixpkgs/pkgs/development/python-modules/flask-caching/default.nix
Fabian Affolter f9d920fc24 python3Packages.flask-caching: 2.3.1 -> 2.5.0
https://github.com/pallets-eco/flask-caching/blob/v2.5.0/CHANGES.rst

This commit was automatically generated using update-python-libraries.
2026-08-25 01:24:22 +02:00

63 lines
1.2 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchPypi,
cachelib,
flask,
asgiref,
pytest-asyncio,
pytest-xprocess,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "flask-caching";
version = "2.5.0";
format = "setuptools";
src = fetchPypi {
pname = "flask_caching";
inherit version;
hash = "sha256-Wod5tUaV+W4bSnoUndjG2GNDPqZjJ83kMRzn/XtXOR8=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "cachelib >= 0.9.0, < 0.10.0" "cachelib"
'';
propagatedBuildInputs = [
cachelib
flask
];
nativeCheckInputs = [
asgiref
pytest-asyncio
pytest-xprocess
pytestCheckHook
];
disabledTests = [
# backend_cache relies on pytest-cache, which is a stale package from 2013
"backend_cache"
# optional backends
"Redis"
"Memcache"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# ignore flaky test
"test_cache_timeout_dynamic"
"test_cached_view_class"
];
meta = {
description = "Caching extension for Flask";
homepage = "https://github.com/pallets-eco/flask-caching";
changelog = "https://github.com/pallets-eco/flask-caching/blob/v${version}/CHANGES.rst";
maintainers = [ ];
license = lib.licenses.bsd3;
};
}