nixpkgs/pkgs/development/python-modules/alembic/default.nix

56 lines
1,018 B
Nix
Raw Normal View History

{ 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";
version = "1.7.5";
format = "setuptools";
disabled = pythonOlder "3.6";
2017-05-29 15:33:04 +02:00
src = fetchPypi {
inherit pname version;
sha256 = "sha256-fDKGlKLmjwPulx5jw72IWEZHA3OltTLPLJ8WAcQTsVM=";
2017-05-29 15:33:04 +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
pytestFlagsArray = [
"--numprocesses" "$NIX_BUILD_CORES"
];
meta = with lib; {
homepage = "https://bitbucket.org/zzzeek/alembic";
2017-05-29 15:33:04 +02:00
description = "A database migration tool for SQLAlchemy";
license = licenses.mit;
maintainers = with maintainers; [ ];
2017-05-29 15:33:04 +02:00
};
}