2019-12-21 05:35:13 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, flask, pytest, pytestcov, pytest-xprocess, pytestcache }:
|
2018-06-29 18:21:58 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Flask-Caching";
|
2019-12-19 19:31:10 +00:00
|
|
|
version = "1.8.0";
|
2018-06-29 18:21:58 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 19:31:10 +00:00
|
|
|
sha256 = "3d0bd13c448c1640334131ed4163a12aff7df2155e73860f07fc9e5e75de7126";
|
2018-06-29 18:21:58 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ flask ];
|
|
|
|
|
2019-12-21 05:35:13 +00:00
|
|
|
checkInputs = [ pytest pytestcov pytest-xprocess pytestcache ];
|
2018-06-29 18:21:58 +01:00
|
|
|
|
2019-07-08 06:48:42 +01:00
|
|
|
# backend_cache relies on pytest-cache, which is a stale package from 2013
|
2018-06-29 18:21:58 +01:00
|
|
|
checkPhase = ''
|
2019-07-08 06:48:42 +01:00
|
|
|
pytest -k 'not backend_cache'
|
2018-06-29 18:21:58 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Adds caching support to your Flask application";
|
2019-07-08 06:48:42 +01:00
|
|
|
homepage = "https://github.com/sh4nks/flask-caching";
|
2018-06-29 18:21:58 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|