python310Packages.ormar: 0.12.0 -> 0.12.1

Changelog: https://github.com/collerek/ormar/releases/tag/0.12.1
This commit is contained in:
Fabian Affolter 2023-01-31 15:01:40 +01:00
parent 8fa665a7c8
commit 3249492be4

View File

@ -11,6 +11,7 @@
, httpx , httpx
, importlib-metadata , importlib-metadata
, mysqlclient , mysqlclient
, nest-asyncio
, orjson , orjson
, poetry-core , poetry-core
, psycopg2 , psycopg2
@ -26,7 +27,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "ormar"; pname = "ormar";
version = "0.12.0"; version = "0.12.1";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -35,7 +36,7 @@ buildPythonPackage rec {
owner = "collerek"; owner = "collerek";
repo = pname; repo = pname;
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-B6dC9+t/pe7vsPb7rkGAbJWLfCAF7lIElFvt1pUu5yA="; hash = "sha256-7d0vmYDN1EjzNWmylb/As4ywo8YYzQ88UwigIsVnwMM=";
}; };
pythonRelaxDeps = [ pythonRelaxDeps = [
@ -50,32 +51,63 @@ buildPythonPackage rec {
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
aiomysql
aiosqlite
asyncpg
cryptography
databases databases
orjson
psycopg2 psycopg2
pydantic pydantic
sqlalchemy sqlalchemy
psycopg2
] ++ lib.optionals (pythonOlder "3.8") [ ] ++ lib.optionals (pythonOlder "3.8") [
typing-extensions typing-extensions
importlib-metadata importlib-metadata
]; ];
passthru.optional-dependencies = {
postgresql = [
asyncpg
];
postgres = [
asyncpg
];
aiopg = [
aiopg
];
mysql = [
aiomysql
];
sqlite = [
aiosqlite
];
orjson = [
orjson
];
crypto = [
cryptography
];
all = [
aiomysql
aiopg
aiosqlite
asyncpg
cryptography
mysqlclient
orjson
pymysql
];
};
nativeCheckInputs = [ nativeCheckInputs = [
aiomysql pytestCheckHook
aiopg ];
aiosqlite
asyncpg checkInputs = [
fastapi fastapi
httpx httpx
mysqlclient nest-asyncio
psycopg2
pymysql
pytest-asyncio pytest-asyncio
pytestCheckHook ] ++ passthru.optional-dependencies.all;
disabledTestPaths = [
"benchmarks/test_benchmark_*.py"
]; ];
disabledTests = [ disabledTests = [