2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
setuptools,
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
importlib-metadata,
|
|
|
|
importlib-resources,
|
|
|
|
mako,
|
|
|
|
sqlalchemy,
|
|
|
|
typing-extensions,
|
|
|
|
|
|
|
|
# tests
|
|
|
|
pytest7CheckHook,
|
|
|
|
pytest-xdist,
|
|
|
|
python-dateutil,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "alembic";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.13.1";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-STLIVYv2jy7pK5u8uCGGccYnBk1bCJOUN69td9wF5ZU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
dependencies =
|
|
|
|
[
|
|
|
|
mako
|
|
|
|
sqlalchemy
|
|
|
|
typing-extensions
|
|
|
|
]
|
|
|
|
++ lib.optionals (pythonOlder "3.9") [
|
|
|
|
importlib-resources
|
|
|
|
importlib-metadata
|
|
|
|
];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "alembic" ];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
pytest7CheckHook
|
2021-09-18 10:52:07 +00:00
|
|
|
pytest-xdist
|
2024-01-13 08:15:51 +00:00
|
|
|
python-dateutil
|
2021-09-18 10:52:07 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://bitbucket.org/zzzeek/alembic";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Database migration tool for SQLAlchemy";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2021-09-18 10:52:07 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "alembic";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|