2020-06-15 15:56:04 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27, flask, pytest, pytestcov, pytest-xprocess, pytestcache }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Flask-Caching";
|
2020-06-15 15:56:04 +00:00
|
|
|
version = "1.9.0";
|
|
|
|
disabled = isPy27; # invalid python2 syntax
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-15 15:56:04 +00:00
|
|
|
sha256 = "a0356ad868b1d8ec2d0e675a6fe891c41303128f8904d5d79e180d8b3f952aff";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ flask ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest pytestcov pytest-xprocess pytestcache ];
|
|
|
|
|
|
|
|
# backend_cache relies on pytest-cache, which is a stale package from 2013
|
|
|
|
checkPhase = ''
|
|
|
|
pytest -k 'not backend_cache'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Adds caching support to your Flask application";
|
|
|
|
homepage = "https://github.com/sh4nks/flask-caching";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|