Unverified Commit e62da8da authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python313Packages.flask-security: fix python 3.13 compat (#418456)

parents 49c4b82d 51e4bf74
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -45,7 +45,6 @@
  mongoengine,
  mongomock,
  peewee,
  pony,
  pytestCheckHook,
  requests,
  zxcvbn,
@@ -111,7 +110,6 @@ buildPythonPackage rec {
      mongoengine
      mongomock
      peewee
      pony
      pytestCheckHook
      requests
      zxcvbn
@@ -132,11 +130,11 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "flask_security" ];

  meta = with lib; {
  meta = {
    changelog = "https://github.com/pallets-eco/flask-security/blob/${src.tag}/CHANGES.rst";
    homepage = "https://github.com/pallets-eco/flask-security";
    description = "Quickly add security features to your Flask application";
    license = licenses.mit;
    maintainers = with maintainers; [ gador ];
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ gador ];
  };
}
+9 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  aiosqlite,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch2,
  flask,
  flit-core,
  lib,
@@ -21,6 +22,14 @@ buildPythonPackage rec {
    hash = "sha256-LpdPp5Gp74DSJqD1DJqwNeaMKdN5pEAUkxnKGYZcVis=";
  };

  patches = [
    # fix python3.13 compat
    (fetchpatch2 {
      url = "https://github.com/pallets-eco/flask-sqlalchemy-lite/commit/b4117beaa6caa0a5945d6e3451db8b80dc4cc8cf.patch?full_index=1";
      hash = "sha256-zCeUWB3iuKqco030pULaRpRsIOpSRz9+VYxI/RQhIyw=";
    })
  ];

  build-system = [ flit-core ];

  dependencies =