python3Packages.flask-caching: disable optional backend tests
This commit is contained in:
parent
ce47da9335
commit
fd1e471121
1 changed files with 9 additions and 6 deletions
|
@ -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 {
|
||||
pname = "Flask-Caching";
|
||||
|
@ -12,12 +12,15 @@ buildPythonPackage rec {
|
|||
|
||||
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
|
||||
checkPhase = ''
|
||||
pytest -k 'not backend_cache'
|
||||
'';
|
||||
"backend_cache"
|
||||
# optional backends
|
||||
"Redis"
|
||||
"Memcache"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Adds caching support to your Flask application";
|
||||
|
|
Loading…
Reference in a new issue