gnu: python-sqlalchemy-2: Improve package style.

Add missing input as seen python-team build
<https://ci.guix.gnu.org/build/6245544/log/raw>.

* gnu/packages/databases.scm (python-sqlalchemy-2): Improve packge
style. Shift order of the fields.
[arguments]<#:phases>: Remove all custom phases, swap tests deletion
and substitution with "--ignore" and "-k" options in <#:test-flags>.
[propagated-inputs]: Add python-greenlet.
[native-inputs]: Add python-cython and python-setuptools.
[description]: Fix indentation.

Change-Id: Ib1f145efe8d9b24aa069a4c616525855b278568b
This commit is contained in:
Sharlatan Hellseher 2024-10-22 14:06:36 +01:00
parent f6f3d8a76e
commit ce320d27d8
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -3674,40 +3674,30 @@ simple and Pythonic domain language.")
(sha256 (sha256
(base32 "1i99kgm8hc38iffgp3wdbixpdc5jfjklabh8lyp9h8vd1dl6f9vz")))) (base32 "1i99kgm8hc38iffgp3wdbixpdc5jfjklabh8lyp9h8vd1dl6f9vz"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(native-inputs (list python-pytest))
(propagated-inputs (list python-typing-extensions))
(arguments (arguments
(list (list
#:phases #:test-flags
#~(modify-phases %standard-phases ;; Remove expensive tests.
(add-after 'unpack 'disable-tests #~(list "--ignore=test/aaa_profiling/test_memusage.py"
(lambda _ "--ignore=test/ext/mypy/test_mypy_plugin_py3k.py"
;; Remove expensive tests. "--ignore=test/typing/test_mypy.py"
(for-each delete-file ;; Disable a test that fails randomly.
'("test/ext/mypy/test_mypy_plugin_py3k.py" "-k" "test_recycle_pool_no_race")))
"test/typing/test_mypy.py" (native-inputs
"test/aaa_profiling/test_memusage.py")) (list python-cython
(substitute* "test/engine/test_pool.py" python-pytest
;; Disable a test that fails randomly. python-setuptools))
(("def test_recycle_pool_no_race") (propagated-inputs
"def _test_recycle_pool_no_race")))) (list python-greenlet
;; According to the pyproject.toml, greenlet is optional. python-typing-extensions))
(add-after 'unpack 'remove-dependency-on-greenlet
(lambda _
(substitute* "setup.cfg"
(("greenlet != 0.4.17")
"#greenlet != 0.4.17"))
(substitute* "PKG-INFO"
(("Requires-Dist: greenlet")
"#Requires-Dist: greenlet")))))))
(home-page "https://www.sqlalchemy.org") (home-page "https://www.sqlalchemy.org")
(synopsis "SQL toolkit and object relational mapper") (synopsis "SQL toolkit and object relational mapper")
(description (description
"SQLAlchemy is the Python SQL toolkit and @acronym{ORM, Object Relational Mapper} "SQLAlchemy is the Python SQL toolkit and @acronym{ORM, Object Relational
that gives application developers the full power and flexibility of SQL. It provides Mapper} that gives application developers the full power and flexibility of
a full suite of well known enterprise-level persistence patterns, designed for SQL. It provides a full suite of well known enterprise-level persistence
efficient and high-performing database access, adapted into a simple and Pythonic patterns, designed for efficient and high-performing database access, adapted
domain language.") into a simple and Pythonic domain language.")
(license license:expat))) (license license:expat)))
(define-public python-sqlalchemy-stubs (define-public python-sqlalchemy-stubs