2021-08-31 00:17:06 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, Mako
|
|
|
|
, python-dateutil
|
|
|
|
, sqlalchemy
|
|
|
|
, importlib-metadata
|
|
|
|
, importlib-resources
|
|
|
|
, pytest-xdist
|
|
|
|
, pytestCheckHook
|
2017-05-29 15:33:04 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "alembic";
|
2021-11-19 19:31:51 +01:00
|
|
|
version = "1.7.5";
|
2021-08-31 00:17:06 +02:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2017-05-29 15:33:04 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-11-19 19:31:51 +01:00
|
|
|
sha256 = "sha256-fDKGlKLmjwPulx5jw72IWEZHA3OltTLPLJ8WAcQTsVM=";
|
2017-05-29 15:33:04 +02:00
|
|
|
};
|
|
|
|
|
2021-08-31 00:17:06 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
Mako
|
|
|
|
python-dateutil
|
|
|
|
sqlalchemy
|
|
|
|
] ++ lib.optionals (pythonOlder "3.9") [
|
|
|
|
importlib-resources
|
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
importlib-metadata
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"alembic"
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-xdist
|
|
|
|
];
|
2017-05-29 15:33:04 +02:00
|
|
|
|
2021-08-31 00:17:06 +02:00
|
|
|
pytestFlagsArray = [
|
2021-11-19 19:31:51 +01:00
|
|
|
"--numprocesses" "$NIX_BUILD_CORES"
|
2021-08-31 00:17:06 +02:00
|
|
|
];
|
2019-10-25 10:50:38 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://bitbucket.org/zzzeek/alembic";
|
2017-05-29 15:33:04 +02:00
|
|
|
description = "A database migration tool for SQLAlchemy";
|
|
|
|
license = licenses.mit;
|
2021-08-31 00:17:06 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-05-29 15:33:04 +02:00
|
|
|
};
|
|
|
|
}
|