diff options
| author | Hartmut Goebel <h.goebel@crazy-compilers.com> | 2022-07-20 20:41:29 +0200 |
|---|---|---|
| committer | Hartmut Goebel <h.goebel@crazy-compilers.com> | 2022-08-10 09:38:57 +0200 |
| commit | 0b929d2d239a5e32f2c87e6744105dff34c72c4a (patch) | |
| tree | 14908edf0ad19473c0f6ca22fb22a35ad644ec98 /gnu/packages/openstack.scm | |
| parent | 122bedf2fd843571f11ad68d33735a2a9b21af8a (diff) | |
gnu: Add python-keystoneauth1.
* gnu/packages/openstack.scm (python-keystoneauth1): New variable.
Diffstat (limited to 'gnu/packages/openstack.scm')
| -rw-r--r-- | gnu/packages/openstack.scm | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm index df785261751..4e3e9335098 100644 --- a/gnu/packages/openstack.scm +++ b/gnu/packages/openstack.scm | |||
| @@ -725,6 +725,66 @@ functions, such as encoding, exception handling, string manipulation, and time | |||
| 725 | handling.") | 725 | handling.") |
| 726 | (license asl2.0))) | 726 | (license asl2.0))) |
| 727 | 727 | ||
| 728 | (define-public python-keystoneauth1 | ||
| 729 | (package | ||
| 730 | (name "python-keystoneauth1") | ||
| 731 | (version "5.0.0") | ||
| 732 | (source (origin | ||
| 733 | (method url-fetch) | ||
| 734 | (uri (pypi-uri "keystoneauth1" version)) | ||
| 735 | (sha256 | ||
| 736 | (base32 | ||
| 737 | "08s36dqxrxqx37sdl28cr7fx2iwr8wfxaa53hwq2dzcx9h25zfvf")))) | ||
| 738 | (build-system python-build-system) | ||
| 739 | (arguments | ||
| 740 | `(#:phases | ||
| 741 | (modify-phases %standard-phases | ||
| 742 | (add-after 'unpack 'relax-requirements | ||
| 743 | (lambda _ | ||
| 744 | (substitute* "test-requirements.txt" | ||
| 745 | (("hacking[<>!=].*") "hacking\n") | ||
| 746 | ;; unused, code-quality checks only | ||
| 747 | (("flake8-.*[<>!=]" line) (string-append "# " line)) | ||
| 748 | (("pycodestyle[<>!=]" line) (string-append "# " line)) | ||
| 749 | (("bandit[<>!=]" line) (string-append "# " line)) | ||
| 750 | (("coverage[<>!=]" line) (string-append "# " line)) | ||
| 751 | (("reno[<>!=]" line) (string-append "# " line))))) | ||
| 752 | (add-before 'check 'check-setup | ||
| 753 | (lambda _ | ||
| 754 | ;; remove code-quality checks | ||
| 755 | (delete-file "keystoneauth1/tests/unit/test_hacking_checks.py"))) | ||
| 756 | (replace 'check | ||
| 757 | (lambda* (#:key tests? #:allow-other-keys) | ||
| 758 | (when tests? | ||
| 759 | (invoke "stestr" "run"))))))) | ||
| 760 | (propagated-inputs (list python-iso8601 | ||
| 761 | python-os-service-types | ||
| 762 | python-requests | ||
| 763 | python-six | ||
| 764 | python-stevedore)) | ||
| 765 | (native-inputs (list python-betamax | ||
| 766 | python-fixtures | ||
| 767 | python-hacking | ||
| 768 | python-lxml | ||
| 769 | python-oauthlib | ||
| 770 | python-oslo.config | ||
| 771 | python-oslo.utils | ||
| 772 | python-oslotest | ||
| 773 | python-pbr | ||
| 774 | python-pyyaml | ||
| 775 | python-requests-kerberos | ||
| 776 | python-requests-mock | ||
| 777 | python-stestr | ||
| 778 | python-testresources | ||
| 779 | python-testtools)) | ||
| 780 | (home-page "https://docs.openstack.org/keystoneauth/latest/") | ||
| 781 | (synopsis "Authentication Library for OpenStack Identity") | ||
| 782 | (description "Keystoneauth provides a standard way to do authentication | ||
| 783 | and service requests within the OpenStack ecosystem. It is designed for use | ||
| 784 | in conjunction with the existing OpenStack clients and for simplifying the | ||
| 785 | process of writing new clients.") | ||
| 786 | (license asl2.0))) | ||
| 787 | |||
| 728 | (define-public python-keystoneclient | 788 | (define-public python-keystoneclient |
| 729 | (package | 789 | (package |
| 730 | (name "python-keystoneclient") | 790 | (name "python-keystoneclient") |
