Skip to content

Commit

Permalink
python311Packages.flask-api: fix flask 3.0 compat, enable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Jan 26, 2024
1 parent 68c9550 commit 2cee7f3
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions pkgs/development/python-modules/flask-api/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,23 @@
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, fetchpatch

# build-system
, setuptools

# dependencies
, flask

# tests
, markdown
, pytestCheckHook
}:

buildPythonPackage rec {
pname = "Flask-API";
pname = "flask-api";
version = "3.1";
format = "setuptools";
pyproject = true;

disabled = pythonOlder "3.6";

Expand All @@ -20,9 +29,25 @@ buildPythonPackage rec {
hash = "sha256-nHgeI5FLKkDp4uWO+0eaT4YSOMkeQ0wE3ffyJF+WzTM=";
};

patches = [
(fetchpatch {
# werkzeug 3.0 support
url = "https://github.com/flask-api/flask-api/commit/9c998897f67d8aa959dc3005d7d22f36568b6938.patch";
hash = "sha256-vaCZ4gVlfQXyeksA44ydkjz2FxODHt3gTTP+ukJwEGY=";
})
];

nativeBuildInputs = [
setuptools
];

propagatedBuildInputs = [
flask
];

nativeCheckInputs = [
markdown
pytestCheckHook
];

meta = with lib; {
Expand Down

0 comments on commit 2cee7f3

Please sign in to comment.