Files
nixpkgs/pkgs/development/python-modules/flask-caching/default.nix
T
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

66 lines
1.3 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
pythonOlder,
fetchPypi,
cachelib,
flask,
asgiref,
pytest-asyncio,
pytest-xprocess,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "flask-caching";
version = "2.1.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "Flask-Caching";
inherit version;
hash = "sha256-t1AMFFE1g2qVLj3jqAiB2WVOMnopyFLJJlYH9cRJI1w=";
};
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.isDarwin [
# ignore flaky test
"test_cache_timeout_dynamic"
"test_cached_view_class"
];
meta = with lib; {
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 = with maintainers; [ ];
license = licenses.bsd3;
};
}