gnu: python-mysqlclient: Enable selected tests.
* gnu/packages/databases.scm (python-mysqlclient) [build-system]: Change to pyproject-build-system. [arguments] <#:phases>: Add 'fix-test phase. <#:test-flags>: Specify tests to run. [native-inputs]: Add python-pytest. [inputs]: Replace mariadb:dev with mariadb-connector-c. [home-page]: Update. Change-Id: I5ae0873155f9a7cc90a318762b77864665fadc01 Signed-off-by: Hilton Chain <hako@ultrarare.space>
This commit is contained in:
parent
85e457a417
commit
5a41d4a56d
1 changed files with 16 additions and 7 deletions
|
@ -4207,13 +4207,22 @@ files or Python scripts that define a list of migration steps.")
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "mysqlclient" version))
|
(uri (pypi-uri "mysqlclient" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "1rf5l8hazs3v18hmcrm90z3hi9wxv553ipwd5l6kj8j7l6p7abzv"))))
|
||||||
"1rf5l8hazs3v18hmcrm90z3hi9wxv553ipwd5l6kj8j7l6p7abzv"))))
|
(build-system pyproject-build-system)
|
||||||
(build-system python-build-system)
|
(arguments
|
||||||
(arguments '(#:tests? #f)) ;XXX: requires a live database
|
(list #:phases
|
||||||
(inputs
|
#~(modify-phases %standard-phases
|
||||||
`(("mysql-dev" ,mariadb "dev")))
|
(add-before 'check 'fix-test
|
||||||
(home-page "https://github.com/PyMySQL/mysqlclient-python")
|
(lambda _
|
||||||
|
(substitute* "tests/test_MySQLdb_times.py"
|
||||||
|
(("^import mock")
|
||||||
|
"from unittest import mock")))))
|
||||||
|
#:test-flags
|
||||||
|
#~'("tests/test__mysql.py" ;tests not needing a live db
|
||||||
|
"tests/test_MySQLdb_times.py")))
|
||||||
|
(native-inputs (list python-pytest))
|
||||||
|
(inputs (list mariadb-connector-c))
|
||||||
|
(home-page "https://github.com/PyMySQL/mysqlclient")
|
||||||
(synopsis "MySQLdb is an interface to the popular MySQL database server for Python")
|
(synopsis "MySQLdb is an interface to the popular MySQL database server for Python")
|
||||||
(description "MySQLdb is an interface to the popular MySQL database server
|
(description "MySQLdb is an interface to the popular MySQL database server
|
||||||
for Python. The design goals are:
|
for Python. The design goals are:
|
||||||
|
|
Reference in a new issue