Unverified Commit 7a23a483 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #213777 from fabaff/ormar-bump

python310Packages.ormar: 0.12.0 -> 0.12.1
parents 008a4d17 3249492b
Loading
Loading
Loading
Loading
+47 −15
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@
, httpx
, importlib-metadata
, mysqlclient
, nest-asyncio
, orjson
, poetry-core
, psycopg2
@@ -26,7 +27,7 @@

buildPythonPackage rec {
  pname = "ormar";
  version = "0.12.0";
  version = "0.12.1";
  format = "pyproject";

  disabled = pythonOlder "3.7";
@@ -35,7 +36,7 @@ buildPythonPackage rec {
    owner = "collerek";
    repo = pname;
    rev = "refs/tags/${version}";
    hash = "sha256-B6dC9+t/pe7vsPb7rkGAbJWLfCAF7lIElFvt1pUu5yA=";
    hash = "sha256-7d0vmYDN1EjzNWmylb/As4ywo8YYzQ88UwigIsVnwMM=";
  };

  pythonRelaxDeps = [
@@ -50,34 +51,65 @@ buildPythonPackage rec {
  ];

  propagatedBuildInputs = [
    aiomysql
    aiosqlite
    asyncpg
    cryptography
    databases
    orjson
    psycopg2
    pydantic
    sqlalchemy
    psycopg2
  ] ++ lib.optionals (pythonOlder "3.8") [
    typing-extensions
    importlib-metadata
  ];

  nativeCheckInputs = [
  passthru.optional-dependencies = {
    postgresql = [
      asyncpg
    ];
    postgres = [
      asyncpg
    ];
    aiopg = [
      aiopg
    ];
    mysql = [
      aiomysql
    ];
    sqlite = [
      aiosqlite
    ];
    orjson = [
      orjson
    ];
    crypto = [
      cryptography
    ];
    all = [
      aiomysql
      aiopg
      aiosqlite
      asyncpg
    fastapi
    httpx
      cryptography
      mysqlclient
    psycopg2
      orjson
      pymysql
    pytest-asyncio
    ];
  };

  nativeCheckInputs = [
    pytestCheckHook
  ];

  checkInputs = [
    fastapi
    httpx
    nest-asyncio
    pytest-asyncio
  ] ++ passthru.optional-dependencies.all;

  disabledTestPaths = [
    "benchmarks/test_benchmark_*.py"
  ];

  disabledTests = [
    # TypeError: Object of type bytes is not JSON serializable
    "test_bulk_operations_with_json"