31 buildPythonPackage rec {
32 pname = "sqlalchemy-utils";
36 disabled = pythonOlder "3.10";
38 src = fetchFromGitHub {
40 repo = "sqlalchemy-utils";
41 rev = "refs/tags/${version}";
42 hash = "sha256-jC8onlCiuzpMlJ3EzpzCnQ128xpkLzrZEuGWQv7pvVE=";
45 patches = [ ./skip-database-tests.patch ];
47 build-system = [ setuptools ];
49 propagatedBuildInputs = [ sqlalchemy ];
51 optional-dependencies = {
54 pendulum = [ pendulum ];
55 #intervals = [ intervals ];
56 phone = [ phonenumbers ];
57 password = [ passlib ];
59 timezone = [ python-dateutil ];
61 encrypted = [ cryptography ];
78 ++ lib.flatten (builtins.attrValues optional-dependencies)
79 ++ lib.optionals (pythonOlder "3.12") [
80 # requires distutils, which were removed in 3.12
85 "test_create_database_twice"
86 "test_create_and_drop"
91 "ignore::DeprecationWarning"
94 pythonImportsCheck = [ "sqlalchemy_utils" ];
97 description = "Various utility functions and datatypes for SQLAlchemy";
98 homepage = "https://github.com/kvesteri/sqlalchemy-utils";
99 changelog = "https://github.com/kvesteri/sqlalchemy-utils/releases/tag/${version}";
100 license = licenses.bsd3;
101 maintainers = with maintainers; [ eadwu ];