mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
64 lines
1.1 KiB
Nix
64 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";
|
|
};
|
|
}
|