python3Packages.databases: 0.2.6 -> 0.4.3

This commit is contained in:
Martin Weinelt 2021-05-08 00:56:03 +02:00 committed by Jonathan Ringer
parent c1df7ffb7d
commit 0d8af16ee0

View file

@ -4,7 +4,8 @@
, sqlalchemy , sqlalchemy
, aiocontextvars , aiocontextvars
, isPy27 , isPy27
, pytest , pytestCheckHook
, pymysql
, asyncpg , asyncpg
, aiomysql , aiomysql
, aiosqlite , aiosqlite
@ -12,33 +13,37 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "databases"; pname = "databases";
version = "0.2.6"; version = "0.4.3";
disabled = isPy27; disabled = isPy27;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "encode"; owner = "encode";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "0cdb4vln4zdmqbbcj7711b81b2l64jg1miihqcg8gpi35v404h2q"; sha256 = "0aq88k7d9036cy6qvlfv9p2dxd6p6fic3j0az43gn6k1ardhdsgf";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
sqlalchemy
aiocontextvars aiocontextvars
sqlalchemy
]; ];
checkInputs = [ checkInputs = [
pytest
asyncpg
aiomysql aiomysql
aiosqlite aiosqlite
asyncpg
pymysql
pytestCheckHook
]; ];
# big chunk to tests depend on existing posgresql and mysql databases disabledTestPaths = [
# some tests are better than no tests # ModuleNotFoundError: No module named 'aiopg'
checkPhase = '' "tests/test_connection_options.py"
pytest --ignore=tests/test_integration.py --ignore=tests/test_databases.py # circular dependency on starlette
''; "tests/test_integration.py"
# TEST_DATABASE_URLS is not set.
"tests/test_databases.py"
];
meta = with lib; { meta = with lib; {
description = "Async database support for Python"; description = "Async database support for Python";