diff options
| author | Hartmut Goebel <h.goebel@crazy-compilers.com> | 2022-07-20 18:46:50 +0200 |
|---|---|---|
| committer | Hartmut Goebel <h.goebel@crazy-compilers.com> | 2022-08-10 09:38:57 +0200 |
| commit | 122bedf2fd843571f11ad68d33735a2a9b21af8a (patch) | |
| tree | edd2a585b4b2c68dec0010aa6ad49fa289c0f464 /gnu/packages/openstack.scm | |
| parent | e2857167b1f49888c4c216c5735257350b3e161e (diff) | |
gnu: Add python-oslo.concurrency.
* gnu/packages/openstack.scm (python-oslo.concurrency): New variable.
Diffstat (limited to 'gnu/packages/openstack.scm')
| -rw-r--r-- | gnu/packages/openstack.scm | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm index e132f70832c..df785261751 100644 --- a/gnu/packages/openstack.scm +++ b/gnu/packages/openstack.scm | |||
| @@ -388,6 +388,50 @@ common features used in Tempest.") | |||
| 388 | ;;; Packages from the Oslo library | 388 | ;;; Packages from the Oslo library |
| 389 | ;;; | 389 | ;;; |
| 390 | 390 | ||
| 391 | (define-public python-oslo.concurrency | ||
| 392 | (package | ||
| 393 | (name "python-oslo.concurrency") | ||
| 394 | (version "5.0.0") | ||
| 395 | (source (origin | ||
| 396 | (method url-fetch) | ||
| 397 | (uri (pypi-uri "oslo.concurrency" version)) | ||
| 398 | (sha256 | ||
| 399 | (base32 | ||
| 400 | "0zl9wyxvs69i78wja5c3cacd6gadk8cc8ggy2ips0wlakxp98ilz")))) | ||
| 401 | (build-system python-build-system) | ||
| 402 | (arguments | ||
| 403 | `(#:phases | ||
| 404 | (modify-phases %standard-phases | ||
| 405 | (add-after 'unpack 'relax-requirements | ||
| 406 | (lambda _ | ||
| 407 | (substitute* "test-requirements.txt" | ||
| 408 | (("hacking[<>!=]" line) (string-append "# " line)) | ||
| 409 | (("coverage[<>!=]" line) (string-append "# " line)) | ||
| 410 | (("bandit[<>!=]" line) (string-append "# " line)) | ||
| 411 | (("pre-commit[<>!=]" line) (string-append "# " line))))) | ||
| 412 | (add-before 'check 'fix-tests | ||
| 413 | (lambda _ | ||
| 414 | (substitute* "oslo_concurrency/tests/unit/test_processutils.py" | ||
| 415 | (("#!/bin/bash") (string-append "#!" (which "bash"))) | ||
| 416 | (("#!/bin/sh") (string-append "#!" (which "sh"))) | ||
| 417 | (("'/usr/bin/env'") (string-append "'" (which "env") "'")) | ||
| 418 | (("'/usr/bin/env ") (string-append "'" (which "env") " ")) | ||
| 419 | (("'/bin/true'") (string-append "'" (which "true") "'")))))))) | ||
| 420 | (native-inputs (list python-pbr | ||
| 421 | ;; for tests: | ||
| 422 | python-oslotest | ||
| 423 | python-fixtures | ||
| 424 | python-stestr | ||
| 425 | python-eventlet)) | ||
| 426 | (propagated-inputs (list python-fasteners python-oslo.config | ||
| 427 | python-oslo.i18n python-oslo.utils)) | ||
| 428 | (home-page "https://docs.openstack.org/oslo.concurrency/latest/") | ||
| 429 | (synopsis "Oslo Concurrency library") | ||
| 430 | (description "The Oslo Concurrency Library provides utilities for safely | ||
| 431 | running multi-thread, multi-process applications using locking mechanisms and | ||
| 432 | for running external processes.") | ||
| 433 | (license asl2.0))) | ||
| 434 | |||
| 391 | (define-public python-oslo.config | 435 | (define-public python-oslo.config |
| 392 | (package | 436 | (package |
| 393 | (name "python-oslo.config") | 437 | (name "python-oslo.config") |
