depot/third_party/nixpkgs/pkgs/development/python-modules/flask-caching/default.nix
Default email 9405df4a82 Project import generated by Copybara.
GitOrigin-RevId: 8e4fe32876ca15e3d5eb3ecd3ca0b224417f5f17
2021-04-26 15:14:03 -04:00

30 lines
842 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPy27, flask, pytestCheckHook, pytestcov, pytest-xprocess, pytestcache }:
buildPythonPackage rec {
pname = "Flask-Caching";
version = "1.10.1";
disabled = isPy27; # invalid python2 syntax
src = fetchPypi {
inherit pname version;
sha256 = "cf19b722fcebc2ba03e4ae7c55b532ed53f0cbf683ce36fafe5e881789a01c00";
};
propagatedBuildInputs = [ flask ];
checkInputs = [ pytestCheckHook pytestcov pytest-xprocess pytestcache ];
disabledTests = [
# backend_cache relies on pytest-cache, which is a stale package from 2013
"backend_cache"
# optional backends
"Redis"
"Memcache"
];
meta = with lib; {
description = "Adds caching support to your Flask application";
homepage = "https://github.com/sh4nks/flask-caching";
license = licenses.bsd3;
};
}