Skip to content

Commit

Permalink
Merge pull request #210493 from r-ryantm/auto-update/python310Package…
Browse files Browse the repository at this point in the history
…s.flask-caching

python310Packages.flask-caching: 2.0.1 -> 2.0.2
  • Loading branch information
marsam authored Jan 14, 2023
2 parents fee38f5 + 5d6d472 commit a5b65a6
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions pkgs/development/python-modules/flask-caching/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ lib
, stdenv
, buildPythonPackage
, pythonOlder
, fetchPypi
Expand All @@ -11,20 +12,15 @@

buildPythonPackage rec {
pname = "Flask-Caching";
version = "2.0.1";
version = "2.0.2";
format = "setuptools";
disabled = pythonOlder "3.7";

src = fetchPypi {
inherit pname version;
sha256 = "sha256-EN8gCgPwMq9gB3vv5Bd53ZSJi2fIIEDTTochC3G6Jjg=";
sha256 = "sha256-JLYMVS1ZqWBcwbakLFbNs5qCoo2rRTK77bkiKuVOy04=";
};

postPatch = ''
substituteInPlace setup.py \
--replace "Flask <= 2.1.2" "Flask <= 2.2"
'';

propagatedBuildInputs = [
cachelib
flask
Expand All @@ -42,11 +38,16 @@ buildPythonPackage rec {
# optional backends
"Redis"
"Memcache"
] ++ lib.optionals stdenv.isDarwin [
# ignore flaky test
"test_cached_view_class"
];

meta = with lib; {
description = "Adds caching support to your Flask application";
homepage = "https://github.com/sh4nks/flask-caching";
description = "A caching extension for Flask";
homepage = "https://github.com/pallets-eco/flask-caching";
changelog = "https://github.com/pallets-eco/flask-caching/blob/v${version}/CHANGES.rst";
maintainers = with maintainers; [ ];
license = licenses.bsd3;
};
}

0 comments on commit a5b65a6

Please sign in to comment.