python3Packages.flask-caching: disable optional backend tests

This commit is contained in:
Jonathan Ringer 2021-04-21 11:36:16 -07:00 committed by Jonathan Ringer
parent ce47da9335
commit fd1e471121

View file

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, isPy27, flask, pytest, pytestcov, pytest-xprocess, pytestcache }: { lib, buildPythonPackage, fetchPypi, isPy27, flask, pytestCheckHook, pytestcov, pytest-xprocess, pytestcache }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "Flask-Caching"; pname = "Flask-Caching";
@ -12,12 +12,15 @@ buildPythonPackage rec {
propagatedBuildInputs = [ flask ]; propagatedBuildInputs = [ flask ];
checkInputs = [ pytest pytestcov pytest-xprocess pytestcache ]; checkInputs = [ pytestCheckHook pytestcov pytest-xprocess pytestcache ];
disabledTests = [
# backend_cache relies on pytest-cache, which is a stale package from 2013 # backend_cache relies on pytest-cache, which is a stale package from 2013
checkPhase = '' "backend_cache"
pytest -k 'not backend_cache' # optional backends
''; "Redis"
"Memcache"
];
meta = with lib; { meta = with lib; {
description = "Adds caching support to your Flask application"; description = "Adds caching support to your Flask application";