Commit 27d2ca56 authored by Kerstin Humm's avatar Kerstin Humm Committed by Florian Klink
Browse files

python3Packages.flask-alembic: init at 3.1.1

parent eadb306f
Loading
Loading
Loading
Loading
+52 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pythonAtLeast,
  flit-core,
  alembic,
  flask,
  sqlalchemy,
  pytestCheckHook,
  flask-sqlalchemy,
  flask-sqlalchemy-lite,
}:

buildPythonPackage rec {
  pname = "flask-alembic";
  version = "3.1.1";

  pyproject = true;

  src = fetchFromGitHub {
    owner = "pallets-eco";
    repo = "flask-alembic";
    tag = version;
    hash = "sha256-iHJr9l3w1WwZXDl573IV7+A7RDcawGL20sxxhAQQ628=";
  };

  build-system = [ flit-core ];

  dependencies = [
    alembic
    flask
    sqlalchemy
  ];

  nativeCheckInputs = [
    pytestCheckHook
    flask-sqlalchemy
    flask-sqlalchemy-lite
  ];

  pythonImportChecks = [ "flask_alembic" ];

  meta = with lib; {
    # https://github.com/pallets-eco/flask-alembic/issues/47
    broken = pythonAtLeast "3.13";
    homepage = "https://github.com/pallets-eco/flask-alembic";
    changelog = "https://github.com/pallets-eco/flask-alembic/blob/${src.tag}/CHANGES.md";
    license = licenses.mit;
    maintainers = with maintainers; [ erictapen ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -4981,6 +4981,8 @@ self: super: with self; {
  flask-admin = callPackage ../development/python-modules/flask-admin { };
  flask-alembic = callPackage ../development/python-modules/flask-alembic { };
  flask-allowed-hosts = callPackage ../development/python-modules/flask-allowed-hosts { };
  flask-api = callPackage ../development/python-modules/flask-api { };