2021-07-20 21:42:24 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27, flask, pytestCheckHook, pytest-cov, pytest-xprocess, pytestcache }:
|
2018-06-29 18:21:58 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Flask-Caching";
|
2021-03-24 09:28:12 +00:00
|
|
|
version = "1.10.1";
|
2020-06-20 17:11:55 +01:00
|
|
|
disabled = isPy27; # invalid python2 syntax
|
2018-06-29 18:21:58 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 09:28:12 +00:00
|
|
|
sha256 = "cf19b722fcebc2ba03e4ae7c55b532ed53f0cbf683ce36fafe5e881789a01c00";
|
2018-06-29 18:21:58 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ flask ];
|
|
|
|
|
2021-07-20 21:42:24 +01:00
|
|
|
checkInputs = [ pytestCheckHook pytest-cov pytest-xprocess pytestcache ];
|
2018-06-29 18:21:58 +01:00
|
|
|
|
2021-04-21 19:36:16 +01:00
|
|
|
disabledTests = [
|
|
|
|
# backend_cache relies on pytest-cache, which is a stale package from 2013
|
|
|
|
"backend_cache"
|
|
|
|
# optional backends
|
|
|
|
"Redis"
|
|
|
|
"Memcache"
|
|
|
|
];
|
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;
|
|
|
|
};
|
|
|
|
}
|