mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
python3Packages.sqlalchemy: 1.4.40 -> 1.4.41
https://github.com/sqlalchemy/sqlalchemy/releases/tag/rel_1_4_41
This commit is contained in:
parent
092d8e3d4e
commit
a2448e354a
1 changed files with 107 additions and 11 deletions
|
@ -1,39 +1,134 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, isPyPy
|
||||
, pythonOlder
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, isPy3k
|
||||
, pythonOlder
|
||||
|
||||
# build
|
||||
, cython
|
||||
|
||||
# propagates
|
||||
, greenlet
|
||||
, importlib-metadata
|
||||
, typing-extensions
|
||||
|
||||
# optionals
|
||||
, aiosqlite
|
||||
, asyncmy
|
||||
, asyncpg
|
||||
, cx_oracle
|
||||
, mariadb
|
||||
, mypy
|
||||
, mysql-connector
|
||||
, mysqlclient
|
||||
# TODO: oracledb
|
||||
, pg8000
|
||||
, psycopg
|
||||
, psycopg2
|
||||
, psycopg2cffi
|
||||
# TODO: pymssql
|
||||
, pymysql
|
||||
, pyodbc
|
||||
# TODO: sqlcipher3
|
||||
|
||||
# tests
|
||||
, mock
|
||||
, pysqlite ? null
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "SQLAlchemy";
|
||||
version = "1.4.40";
|
||||
version = "1.4.41";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-RKZgUGCAzJdeHfpXdv5fYxXdxiane1C/Du4YsDieomU=";
|
||||
hash = "sha256-ApL3DReX48VOhi5vMK5HQBRki8nHI+FKL9pzCtsKl5E=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = lib.optionals (!isPyPy) [
|
||||
cython
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
greenlet
|
||||
typing-extensions
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
importlib-metadata
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = rec {
|
||||
asyncio = [
|
||||
greenlet
|
||||
];
|
||||
mypy = [
|
||||
#mypy
|
||||
];
|
||||
mssql = [
|
||||
pyodbc
|
||||
];
|
||||
mssql_pymysql = [
|
||||
# TODO: pymssql
|
||||
];
|
||||
mssql_pyodbc = [
|
||||
pyodbc
|
||||
];
|
||||
mysql = [
|
||||
mysqlclient
|
||||
];
|
||||
mysql_connector = [
|
||||
mysql-connector
|
||||
];
|
||||
mariadb_connector = [
|
||||
mariadb
|
||||
];
|
||||
oracle = [
|
||||
cx_oracle
|
||||
];
|
||||
oracle_oracledb = [
|
||||
# TODO: oracledb
|
||||
];
|
||||
postgresql = [
|
||||
psycopg2
|
||||
];
|
||||
postgresql_pg8000 = [
|
||||
pg8000
|
||||
];
|
||||
postgresql_asyncpg = [
|
||||
asyncpg
|
||||
] ++ asyncio;
|
||||
postgresql_psycopg2binary = [
|
||||
psycopg2
|
||||
];
|
||||
postgresql_psycopg2cffi = [
|
||||
psycopg2cffi
|
||||
];
|
||||
postgresql_psycopg = [
|
||||
psycopg
|
||||
];
|
||||
pymysql = [
|
||||
pymysql
|
||||
];
|
||||
aiomysql = [
|
||||
aiomysql
|
||||
] ++ asyncio;
|
||||
asyncmy = [
|
||||
asyncmy
|
||||
] ++ asyncio;
|
||||
aiosqlite = [
|
||||
aiosqlite
|
||||
typing-extensions
|
||||
] ++ asyncio;
|
||||
sqlcipher = [
|
||||
# TODO: sqlcipher3
|
||||
];
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
mock
|
||||
] ++ lib.optional (!isPy3k) pysqlite;
|
||||
|
||||
postInstall = ''
|
||||
sed -e 's:--max-worker-restart=5::g' -i setup.cfg
|
||||
'';
|
||||
];
|
||||
|
||||
# disable mem-usage tests on mac, has trouble serializing pickle files
|
||||
disabledTests = lib.optionals stdenv.isDarwin [
|
||||
|
@ -42,8 +137,9 @@ buildPythonPackage rec {
|
|||
];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/sqlalchemy/sqlalchemy/releases/tag/rel_${builtins.replaceStrings [ "." ] [ "_" ] version}";
|
||||
description = "The Python SQL toolkit and Object Relational Mapper";
|
||||
homepage = "http://www.sqlalchemy.org/";
|
||||
description = "A Python SQL toolkit and Object Relational Mapper";
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue