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 {
|
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 ];
|
||||||
|
|
||||||
# backend_cache relies on pytest-cache, which is a stale package from 2013
|
disabledTests = [
|
||||||
checkPhase = ''
|
# backend_cache relies on pytest-cache, which is a stale package from 2013
|
||||||
pytest -k 'not backend_cache'
|
"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";
|
||||||
|
|
Loading…
Reference in a new issue