16 buildPythonPackage rec {
21 disabled = pythonOlder "3.8";
23 src = fetchFromGitHub {
26 rev = "refs/tags/${version}";
27 hash = "sha256-Zf9QqBgDhWAnHdNvzjXtri5rdT00BOjc4YTNzJALldM=";
30 nativeBuildInputs = [ setuptools ];
32 propagatedBuildInputs = [ sqlalchemy ];
34 optional-dependencies = {
35 postgresql = [ asyncpg ];
36 asyncpg = [ asyncpg ];
39 aiomysql = [ aiomysql ];
40 asyncmy = [ asyncmy ];
41 sqlite = [ aiosqlite ];
42 aiosqlite = [ aiosqlite ];
45 nativeCheckInputs = [ pytestCheckHook ];
48 # circular dependency on starlette
49 "tests/test_integration.py"
50 # TEST_DATABASE_URLS is not set.
51 "tests/test_databases.py"
52 "tests/test_connection_options.py"
55 pythonImportsCheck = [ "databases" ];
58 description = "Async database support for Python";
59 homepage = "https://github.com/encode/databases";
60 changelog = "https://github.com/encode/databases/releases/tag/${version}";
61 license = licenses.bsd3;