mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-pymodbus: Update to 3.8.6.
* gnu/packages/python-xyz.scm (python-pymodbus): Update to 3.8.6. [build-system]: Swith to pyproject. [arguments]{test-flags}: Ignore failing tests. {phases}: Remove field, use test-flags instead. [native-inputs]: Add python-pytest-asyncio, python-pytest-cov, python-pytest-xdist, python-setuptools, python-wheel. Change-Id: I39425bc6d3697e942e6f81868406bd83c8da7332 Signed-off-by: Steve George <steve@futurile.net>
This commit is contained in:
parent
b708d41795
commit
4056a5eb3b
1 changed files with 33 additions and 38 deletions
|
@ -24514,7 +24514,7 @@ client.")
|
||||||
(define-public python-pymodbus
|
(define-public python-pymodbus
|
||||||
(package
|
(package
|
||||||
(name "python-pymodbus")
|
(name "python-pymodbus")
|
||||||
(version "2.5.3")
|
(version "3.8.6")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
|
@ -24523,46 +24523,41 @@ client.")
|
||||||
(commit (string-append "v" version))))
|
(commit (string-append "v" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "1sncllh01c6vqq4fh9k3yg9fchmmw661rcp0066l7fis6sp4yw82"))))
|
||||||
"0kjjrx7xrlx0pf3y67hhr4xvqrly3xzmvf6ic5as61m6z19m7zd5"))))
|
(build-system pyproject-build-system)
|
||||||
(build-system python-build-system)
|
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases (modify-phases %standard-phases
|
(list
|
||||||
(add-after 'unpack 'disable-problematic-tests
|
#:test-flags
|
||||||
(lambda _
|
#~(list "--ignore"
|
||||||
;; The following test modules rely on Python's own
|
"test/server/test_simulator_api.py"
|
||||||
;; 'test' module, which is not distributed in the Python
|
;; These tests require the presence of a certificate.
|
||||||
;; package of Guix.
|
"--ignore-glob"
|
||||||
(delete-file "test/test_client_async_asyncio.py")
|
"test/examples/*"
|
||||||
(delete-file "test/test_client_sync_diag.py")
|
"--ignore"
|
||||||
;; The following test module requires the asynctest
|
"test/client/test_client.py")))
|
||||||
;; library, abandoned without support for Python 3.9+
|
(native-inputs (list python-mock
|
||||||
;; (see:
|
python-pytest
|
||||||
;; https://github.com/riptideio/pymodbus/issues/681).
|
python-pytest-asyncio
|
||||||
(delete-file "test/test_server_asyncio.py")))
|
python-pytest-cov
|
||||||
(replace 'check
|
python-pytest-xdist
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
python-redis
|
||||||
(when tests?
|
python-setuptools
|
||||||
(invoke "python" "-m" "pytest")))))))
|
python-sqlalchemy
|
||||||
(native-inputs
|
python-tornado
|
||||||
(list python-mock
|
python-twisted
|
||||||
python-pytest
|
python-wheel))
|
||||||
python-redis
|
(propagated-inputs (list python-pyserial
|
||||||
python-sqlalchemy
|
python-six
|
||||||
python-tornado
|
;; For the REPL.
|
||||||
python-twisted))
|
python-aiohttp
|
||||||
(propagated-inputs
|
python-click
|
||||||
(list python-pyserial
|
python-prompt-toolkit
|
||||||
python-six
|
python-pygments
|
||||||
;; For the REPL.
|
python-pyserial-asyncio))
|
||||||
python-aiohttp
|
|
||||||
python-click
|
|
||||||
python-prompt-toolkit
|
|
||||||
python-pygments
|
|
||||||
python-pyserial-asyncio))
|
|
||||||
(home-page "https://github.com/riptideio/pymodbus/")
|
(home-page "https://github.com/riptideio/pymodbus/")
|
||||||
(synopsis "Modbus protocol stack in Python")
|
(synopsis "Modbus protocol stack in Python")
|
||||||
(description "Pymodbus is a full Modbus protocol implementation using
|
(description
|
||||||
|
"Pymodbus is a full Modbus protocol implementation using
|
||||||
@code{asyncio}, @code{tornado} or @code{twisted} for its asynchronous
|
@code{asyncio}, @code{tornado} or @code{twisted} for its asynchronous
|
||||||
communications core. It includes the following @emph{client} features:
|
communications core. It includes the following @emph{client} features:
|
||||||
@itemize
|
@itemize
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue