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