depot/third_party/nixpkgs/pkgs/development/python-modules/flask-caching/default.nix
Default email 2ce89355c3 Project import generated by Copybara.
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
2020-06-15 17:56:04 +02:00

27 lines
783 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPy27, flask, pytest, pytestcov, pytest-xprocess, pytestcache }:
buildPythonPackage rec {
pname = "Flask-Caching";
version = "1.9.0";
disabled = isPy27; # invalid python2 syntax
src = fetchPypi {
inherit pname version;
sha256 = "a0356ad868b1d8ec2d0e675a6fe891c41303128f8904d5d79e180d8b3f952aff";
};
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;
};
}