1{ lib, buildPythonPackage, fetchPypi, isPy27, flask, pytestCheckHook, pytest-cov, pytest-xprocess, pytestcache }: 2 3buildPythonPackage rec { 4 pname = "Flask-Caching"; 5 version = "1.10.1"; 6 disabled = isPy27; # invalid python2 syntax 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "cf19b722fcebc2ba03e4ae7c55b532ed53f0cbf683ce36fafe5e881789a01c00"; 11 }; 12 13 propagatedBuildInputs = [ flask ]; 14 15 checkInputs = [ pytestCheckHook pytest-cov pytest-xprocess pytestcache ]; 16 17 disabledTests = [ 18 # backend_cache relies on pytest-cache, which is a stale package from 2013 19 "backend_cache" 20 # optional backends 21 "Redis" 22 "Memcache" 23 ]; 24 25 meta = with lib; { 26 description = "Adds caching support to your Flask application"; 27 homepage = "https://github.com/sh4nks/flask-caching"; 28 license = licenses.bsd3; 29 }; 30}