Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 54 lines 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, sqlalchemy 5, aiocontextvars 6, isPy27 7, pytestCheckHook 8, pymysql 9, asyncpg 10, aiomysql 11, aiosqlite 12}: 13 14buildPythonPackage rec { 15 pname = "databases"; 16 version = "0.4.3"; 17 disabled = isPy27; 18 19 src = fetchFromGitHub { 20 owner = "encode"; 21 repo = pname; 22 rev = version; 23 sha256 = "0aq88k7d9036cy6qvlfv9p2dxd6p6fic3j0az43gn6k1ardhdsgf"; 24 }; 25 26 propagatedBuildInputs = [ 27 aiocontextvars 28 sqlalchemy 29 ]; 30 31 checkInputs = [ 32 aiomysql 33 aiosqlite 34 asyncpg 35 pymysql 36 pytestCheckHook 37 ]; 38 39 disabledTestPaths = [ 40 # ModuleNotFoundError: No module named 'aiopg' 41 "tests/test_connection_options.py" 42 # circular dependency on starlette 43 "tests/test_integration.py" 44 # TEST_DATABASE_URLS is not set. 45 "tests/test_databases.py" 46 ]; 47 48 meta = with lib; { 49 description = "Async database support for Python"; 50 homepage = "https://github.com/encode/databases"; 51 license = licenses.bsd3; 52 maintainers = [ maintainers.costrouc ]; 53 }; 54}