Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / alembic / default.nix
blobcd7b0696afd430de1b019ebf4cf7c69eee8562f0
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pythonOlder
6 # build-system
7 , setuptools
9 # dependencies
10 , importlib-metadata
11 , importlib-resources
12 , mako
13 , sqlalchemy
14 , typing-extensions
16 # tests
17 , pytest7CheckHook
18 , pytest-xdist
19 , python-dateutil
22 buildPythonPackage rec {
23   pname = "alembic";
24   version = "1.13.1";
25   format = "setuptools";
27   disabled = pythonOlder "3.6";
29   src = fetchPypi {
30     inherit pname version;
31     hash = "sha256-STLIVYv2jy7pK5u8uCGGccYnBk1bCJOUN69td9wF5ZU=";
32   };
34   nativeBuildInputs = [
35     setuptools
36   ];
38   propagatedBuildInputs = [
39     mako
40     sqlalchemy
41     typing-extensions
42   ] ++ lib.optionals (pythonOlder "3.9") [
43     importlib-resources
44     importlib-metadata
45   ];
47   pythonImportsCheck = [
48     "alembic"
49   ];
51   nativeCheckInputs = [
52     pytest7CheckHook
53     pytest-xdist
54     python-dateutil
55   ];
57   meta = with lib; {
58     homepage = "https://bitbucket.org/zzzeek/alembic";
59     description = "A database migration tool for SQLAlchemy";
60     license = licenses.mit;
61     maintainers = with maintainers; [ ];
62     mainProgram = "alembic";
63   };