42 buildPythonPackage rec {
47 disabled = pythonOlder "3.7";
49 src = fetchFromGitHub {
52 rev = "refs/tags/rel_${lib.replaceStrings [ "." ] [ "_" ] version}";
53 hash = "sha256-5nnMh8pEG6rXiy0nk9SKjIOY+htXNx9eHTEtNOkLrd8=";
57 sed -i '/tag_build = dev/d' setup.cfg
60 nativeBuildInputs = [ setuptools ] ++ lib.optionals (!isPyPy) [ cython ];
62 propagatedBuildInputs = [
67 optional-dependencies = lib.fix (self: {
68 asyncio = [ greenlet ];
74 mssql_pyodbc = [ pyodbc ];
75 mysql = [ mysqlclient ];
76 mysql_connector = [ mysql-connector ];
77 mariadb_connector = [ mariadb ];
78 oracle = [ cx-oracle ];
79 oracle_oracledb = [ oracledb ];
80 postgresql = [ psycopg2 ];
81 postgresql_pg8000 = [ pg8000 ];
82 postgresql_asyncpg = [ asyncpg ] ++ self.asyncio;
83 postgresql_psycopg2binary = [ psycopg2 ];
84 postgresql_psycopg2cffi = [ psycopg2cffi ];
85 postgresql_psycopg = [ psycopg ];
86 postgresql_psycopgbinary = [ psycopg ];
87 pymysql = [ pymysql ];
88 aiomysql = [ aiomysql ] ++ self.asyncio;
89 asyncmy = [ asyncmy ] ++ self.asyncio;
105 disabledTestPaths = [
106 # typing correctness, not interesting
109 # slow and high memory usage, not interesting
114 changelog = "https://github.com/sqlalchemy/sqlalchemy/releases/tag/rel_${
115 builtins.replaceStrings [ "." ] [ "_" ] version
117 description = "Python SQL toolkit and Object Relational Mapper";
118 homepage = "http://www.sqlalchemy.org/";
119 license = licenses.mit;