mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 12:05:19 -06:00
gnu: python-execnet: Fix indentation.
* gnu/packages/python-xyz.scm (python-execnet): Fix indentation. Change-Id: I74cbc2078450484e91b60f4fe6c9534ddc5b71f6
This commit is contained in:
parent
48600a9432
commit
8031700457
1 changed files with 54 additions and 52 deletions
|
|
@ -19145,63 +19145,65 @@ friendly JSON encoder, decorators for retries and logging.")
|
|||
(license license:expat)))
|
||||
|
||||
(define-public python-execnet
|
||||
(package
|
||||
(name "python-execnet")
|
||||
(version "2.1.1")
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/pytest-dev/execnet")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"0xlfd0h9sjl0jpc2fc689a497chwbagali7qr364k75hdyax3jfq"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
;; ;; This test hasn't been updated for the latest Pytest yet:
|
||||
;; #:test-flags #~(list "--ignore" "testing/test_rsync.py")
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'adjust-for-pytest-7.2+
|
||||
(lambda _
|
||||
;; This test fails with an error because @py.test has been
|
||||
;; deprecated for @pytest in recent Pytest.
|
||||
(substitute* "testing/test_rsync.py"
|
||||
(("@py.test")
|
||||
"@pytest"))))
|
||||
(add-before 'build 'pretend-version
|
||||
;; The version string is usually derived via setuptools-scm, but
|
||||
;; without the git metadata available this fails.
|
||||
(lambda _
|
||||
;; hatch-vcs uses setuptools under the hood.
|
||||
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION"
|
||||
;; Massage the version string to a PEP-0440 compatible
|
||||
;; one.
|
||||
#$(car (string-split version #\-)))))
|
||||
(add-before 'check 'prepare-for-tests
|
||||
(lambda _
|
||||
;; Unset PYTHONDONTWRITEBYTECODE to match the
|
||||
;; expectations of a test in
|
||||
;; 'testing/test_gateway.py'.
|
||||
(unsetenv "PYTHONDONTWRITEBYTECODE"))))))
|
||||
(native-inputs
|
||||
(list python-hatchling
|
||||
python-hatch-vcs
|
||||
python-pytest-bootstrap))
|
||||
(synopsis "Rapid multi-Python deployment")
|
||||
(description "Execnet provides a share-nothing model with
|
||||
channel-send/receive communication for distributing execution across many
|
||||
Python interpreters across version, platform and network barriers. It has a
|
||||
minimal and fast API targeting the following uses:
|
||||
(package
|
||||
(name "python-execnet")
|
||||
(version "2.1.1")
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/pytest-dev/execnet")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "0xlfd0h9sjl0jpc2fc689a497chwbagali7qr364k75hdyax3jfq"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
;; ;; This test hasn't been updated for the latest Pytest yet:
|
||||
;; #:test-flags #~(list "--ignore" "testing/test_rsync.py")
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'adjust-for-pytest-7.2+
|
||||
(lambda _
|
||||
;; This test fails with an error because @py.test has been
|
||||
;; deprecated for @pytest in recent Pytest.
|
||||
(substitute* "testing/test_rsync.py"
|
||||
(("@py.test")
|
||||
"@pytest"))))
|
||||
(add-before 'build 'pretend-version
|
||||
;; The version string is usually derived via setuptools-scm, but
|
||||
;; without the git metadata available this fails.
|
||||
(lambda _
|
||||
;; hatch-vcs uses setuptools under the hood.
|
||||
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION"
|
||||
;; Massage the version string to a PEP-0440 compatible
|
||||
;; one.
|
||||
#$(car (string-split version #\-)))))
|
||||
(add-before 'check 'prepare-for-tests
|
||||
(lambda _
|
||||
;; Unset PYTHONDONTWRITEBYTECODE to match the
|
||||
;; expectations of a test in
|
||||
;; 'testing/test_gateway.py'.
|
||||
(unsetenv "PYTHONDONTWRITEBYTECODE"))))))
|
||||
(native-inputs
|
||||
(list python-hatchling
|
||||
python-hatch-vcs
|
||||
python-pytest-bootstrap))
|
||||
(home-page "https://codespeak.net/execnet/")
|
||||
(synopsis "Rapid multi-Python deployment")
|
||||
(description
|
||||
"Execnet provides a share-nothing model with channel-send/receive communication
|
||||
for distributing execution across many Python interpreters across version,
|
||||
platform and network barriers. It has a minimal and fast API targeting the
|
||||
following uses:
|
||||
|
||||
@enumerate
|
||||
@item distribute tasks to (many) local or remote CPUs
|
||||
@item write and deploy hybrid multi-process applications
|
||||
@item write scripts to administer multiple environments
|
||||
@end enumerate")
|
||||
(home-page "https://codespeak.net/execnet/")
|
||||
(license license:expat)))
|
||||
(license license:expat)))
|
||||
|
||||
(define-public python-icalendar
|
||||
(package
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue