~ruther/guix-local

c70f57c7022ad0a80724941dee5563b917e2b73a — Sharlatan Hellseher 2 months ago c5c6e88
gnu: python-tortoise-orm: Update to 0.25.3.

* gnu/packages/databases.scm (python-tortoise-orm): Update to 0.25.3.
[arguments] <test-flags>: Skip only one test, run them in parallel.
[propagated-inputs]: Remove python-asyncmy, and python-rapidjson; add
python-anyio, python-asyncodbc, python-orjson, python-psycopg,
python-psycopg-pool, and python-pyodbc.
[native-inputs]: Remove python-ayncodbc, python-psycopg,
python-psycopg-pool, python-pyodbc, and python-poetry-core; add
python-cython, and
python-pdm-backend, python-pytest-xdist.

Change-Id: I4e2c7b8f083bd649c313c26b77c0dd2110a9689c
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
1 files changed, 24 insertions(+), 24 deletions(-)

M gnu/packages/databases.scm
M gnu/packages/databases.scm => gnu/packages/databases.scm +24 -24
@@ 3897,47 3897,47 @@ of PyMySQL.  @code{aiomysql} tries to preserve the same API as the
(define-public python-tortoise-orm
  (package
    (name "python-tortoise-orm")
    (version "0.22.2")
    (version "0.25.3")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/tortoise/tortoise-orm")
             (commit version)))
              (url "https://github.com/tortoise/tortoise-orm")
              (commit version)))
       (file-name (git-file-name name version))
       (sha256
        (base32 "1xzwywvb3898hm41vwkzn785ziqprxh6lcf0lpmrgfcsc9qnnhzk"))))
        (base32 "1b1a20cnhaj7rcdp5l1r5nvd6x1amybgynwpd3cnskpvzqjinsyl"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      ;; tests: 1280 passed, 104 skipped, 4 xfailed, 9 warnings
      #:test-flags
      #~(list "-k" (string-join
                    (list "not test_enum"  ; Fixed in the next release.
                          ;; tortoise.exceptions.OperationalError
                          "test_delete"
                          "test_delete_limit"
                          "test_delete_limit_order_by"
                          "test_update_with_limit_ordering")
                    " and not "))))
      #~(list "--numprocesses" (number->string (min 8 (parallel-job-count)))
              "--ignore=tests/benchmarks/"
              ;; FileNotFoundError: [Errno 2] No such file or directory: 'uvx'
              "--deselect=tests/test_version.py::test_added_by_poetry_v2")))
    (native-inputs
     (list python-asyncodbc
     (list python-cython
           python-fastapi
           python-poetry-core
           python-psycopg
           python-psycopg-pool
           python-pdm-backend
           python-pydantic
           python-pyodbc
           python-pytest))
           python-pytest
           python-pytest-xdist))
    (propagated-inputs
     (list python-aiomysql
           python-aiosqlite
           python-asyncmy
           python-asyncpg
           python-ciso8601
     (list python-aiosqlite
           python-anyio
           python-iso8601
           python-pypika-tortoise
           python-pytz
           python-rapidjson
           ;; [optional]
           python-aiomysql     ;tortoise/backends/mysql/client.py
           python-asyncodbc    ;tortoise/backends/odbc/client.py
           python-asyncpg      ;tortoise/backends/asyncpg/client.py
           python-ciso8601
           python-orjson
           python-psycopg      ;tortoise/backends/psycopg/client.py
           python-psycopg-pool ;
           python-pyodbc       ;tortoise/backends/oracle/client.py
           python-uvloop))
    (home-page "https://github.com/tortoise/tortoise-orm")
    (synopsis "Asynchronous Object Relational Mapper (ORM) for Python")