gnu: Add python-schwimmbad.

* gnu/packages/parallel.scm (python-schwimmbad): New variable.

Change-Id: Ica4bc3989222e3d70e7cfc170bcca953353f8259
This commit is contained in:
Sharlatan Hellseher 2024-06-14 07:56:41 +01:00
parent bada8a23a8
commit 6ecdc437e2
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -36,6 +36,7 @@ (define-module (gnu packages parallel)
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module (guix build-system python)
#:use-module (guix build-system pyproject)
#:use-module ((guix licenses) #:prefix license:)
#:use-module ((guix utils) #:select (target-64bit?))
#:use-module (guix packages)
@ -56,6 +57,7 @@ (define-module (gnu packages parallel)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
#:use-module (gnu packages python-build)
#:use-module (gnu packages python-science)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages readline)
@ -410,6 +412,33 @@ (define-public slurm-drmaa
cluster/resource management systems.")
(license license:gpl3+)))
(define-public python-schwimmbad
(package
(name "python-schwimmbad")
(version "0.4.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "schwimmbad" version))
(sha256
(base32 "1aac1rswb0r0vzbxvjj2jyx5j0vqyjj7mygc71n9zbkpmr8m1rpg"))))
(build-system pyproject-build-system)
(propagated-inputs
(list python-dill
python-joblib
python-mpi4py
python-multiprocess))
(native-inputs
(list python-hatch-vcs python-hatchling python-pytest))
(home-page "https://github.com/adrn/schwimmbad")
(synopsis "Common interface for parallel processing pools")
(description
"@code{schwimmbad} provides a uniform interface to parallel processing
pools and enables switching easily between local development (e.g., serial
processing or with @code{multiprocessing}) and deployment on a cluster or
supercomputer (via, e.g., MPI or JobLib).")
(license license:expat)))
(define-public python-slurm-magic
(let ((commit "73dd1a2b85799f7dae4b3f1cd9027536eff0c4d7")
(revision "0"))