depot/third_party/nixpkgs/pkgs/development/python-modules/alembic/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

63 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
# build-system
setuptools,
# dependencies
importlib-metadata,
importlib-resources,
mako,
sqlalchemy,
typing-extensions,
# tests
pytest7CheckHook,
pytest-xdist,
python-dateutil,
}:
buildPythonPackage rec {
pname = "alembic";
version = "1.13.1";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-STLIVYv2jy7pK5u8uCGGccYnBk1bCJOUN69td9wF5ZU=";
};
build-system = [ setuptools ];
dependencies =
[
mako
sqlalchemy
typing-extensions
]
++ lib.optionals (pythonOlder "3.9") [
importlib-resources
importlib-metadata
];
pythonImportsCheck = [ "alembic" ];
nativeCheckInputs = [
pytest7CheckHook
pytest-xdist
python-dateutil
];
meta = with lib; {
homepage = "https://bitbucket.org/zzzeek/alembic";
description = "Database migration tool for SQLAlchemy";
license = licenses.mit;
maintainers = with maintainers; [ ];
mainProgram = "alembic";
};
}