Files
nixpkgs/pkgs/development/python-modules/flask-alembic/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

53 lines
1.0 KiB
Nix

{
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
];
pythonImportsCheck = [ "flask_alembic" ];
meta = {
# 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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ erictapen ];
};
}