38 buildPythonPackage rec {
39 pname = "sqlalchemy-utils";
41 format = "setuptools";
45 pname = "SQLAlchemy-Utils";
46 hash = "sha256-ohgb/wHuuER544Vx0sBxjrUgQvmv2MGU0NAod+hLfXQ=";
50 ./skip-database-tests.patch
53 propagatedBuildInputs = [
55 ] ++ lib.optionals (pythonOlder "3.8") [
59 passthru.optional-dependencies = {
62 pendulum = [ pendulum ];
63 #intervals = [ intervals ];
64 phone = [ phonenumbers ];
65 password = [ passlib ];
67 timezone = [ python-dateutil ];
69 encrypted = [ cryptography ];
86 ++ lib.flatten (builtins.attrValues passthru.optional-dependencies)
87 ++ lib.optionals (pythonOlder "3.9") [
92 "--deselect tests/functions/test_database.py::TestDatabasePostgresCreateDatabaseCloseConnection::test_create_database_twice"
93 "--deselect tests/functions/test_database.py::TestDatabasePostgresPg8000::test_create_and_drop"
94 "--deselect tests/functions/test_database.py::TestDatabasePostgresPsycoPG2CFFI::test_create_and_drop"
95 "--deselect tests/functions/test_database.py::TestDatabasePostgresPsycoPG3::test_create_and_drop"
99 changelog = "https://github.com/kvesteri/sqlalchemy-utils/releases/tag/${version}";
100 homepage = "https://github.com/kvesteri/sqlalchemy-utils";
101 description = "Various utility functions and datatypes for SQLAlchemy";
102 license = licenses.bsd3;
103 maintainers = with maintainers; [ eadwu ];