1{ lib, buildPythonPackage, fetchPypi, flask, pytest, pytestcov, pytest-xprocess, pytestcache }:
2
3buildPythonPackage rec {
4 pname = "Flask-Caching";
5 version = "1.8.0";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "3d0bd13c448c1640334131ed4163a12aff7df2155e73860f07fc9e5e75de7126";
10 };
11
12 propagatedBuildInputs = [ flask ];
13
14 checkInputs = [ pytest pytestcov pytest-xprocess pytestcache ];
15
16 # backend_cache relies on pytest-cache, which is a stale package from 2013
17 checkPhase = ''
18 pytest -k 'not backend_cache'
19 '';
20
21 meta = with lib; {
22 description = "Adds caching support to your Flask application";
23 homepage = "https://github.com/sh4nks/flask-caching";
24 license = licenses.bsd3;
25 };
26}