[PATCH 1/1] gnu: Add python-robotframework-requests.

  • Done
  • quality assurance status badge
Details
2 participants
  • Markku Korkeala
  • Sharlatan Hellseher
Owner
unassigned
Submitted by
Markku Korkeala
Severity
normal

Debbugs page

M
M
Markku Korkeala wrote on 20 Apr 01:41 -0700
(address . guix-patches@gnu.org)(name . Markku Korkeala)(address . markku.korkeala@iki.fi)
17b3a3b413725d7186ed7905c5c761f86b73d986.1713525337.git.markku.korkeala@iki.fi
* gnu/packages/python-xyz.scm (python-robotframework-requests): New variable.

Change-Id: I01d814d1a9e20d26e9bfa4a0a77ba91577da2bd8
---
gnu/packages/python-xyz.scm | 38 +++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)

Toggle diff (60 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index bac90b1e07..ff85b3f2bf 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -152,6 +152,7 @@
;;; Copyright © 2024 Adriel Dumas--Jondeau <leirda@disroot.org>
;;; Copyright © 2024 Navid Afkhami <navid.afkhami@mdc-berlin.de>
;;; Copyright © 2024 TakeV <takev@disroot.org>
+;;; Copyright © 2024 Markku Korkeala <markku.korkeala@iki.fi>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -7417,6 +7418,43 @@ (define-public python-robotframework-seleniumscreenshots
or for visual regression testing purposes.")
(license license:bsd-3)))
+(define-public python-robotframework-requests
+ (package
+ (name "python-robotframework-requests")
+ (version "0.9.7")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/MarketSquare/robotframework-requests")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "077j8p5k41v53slyv8h32fcmqfi7m6z3r4gmyqqaawm5szfmy61m"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-v" "utests/")))))))
+ (propagated-inputs (list python-requests python-robotframework))
+ (native-inputs (list python-flask
+ python-flask
+ python-coverage
+ python-flake8
+ python-mock
+ python-flake8
+ python-pytest
+ python-pytest-cov))
+ (home-page "https://github.com/MarketSquare/robotframework-requests")
+ (synopsis "Robot Framework keyword library wrapper around requests")
+ (description
+ "RequestsLibrary is a Robot Framework library aimed to provide HTTP
+ api testing functionalities by wrapping the well known Python
+ Requests Library.")
+ (license license:expat)))
+
(define-public python-rstr
(package
(name "python-rstr")

base-commit: ee9cf4f00bcb8966fa125787e8534580b270bb99
--
2.41.0
S
S
Sharlatan Hellseher wrote on 20 Apr 10:22 -0700
(address . 70483@debbugs.gnu.org)
87le58lzip.fsf@gmail.com
Hi!

Thank you for the patch.

There are some modification which need to be applied in v2.

The package is more suitable for python-web.

- [source]:
- [build-system]: Swap to pyprject-build-system to simplify the package.
- [arguments]: Relay on default check phase.
- [native-inputs]: Remove duplicates, remove python-flake8, remove-coverage.
- [description]: Fix indentation.
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEmEeB3micIcJkGAhndtcnv/Ys0rUFAmYj+e8ACgkQdtcnv/Ys
0rWL9xAAiJgbmiRQkegyEcxH+tBRdOGxp+1xpy3hmhDkZ5VXyGbUgujbEecKwCpj
PwoUCtkr/YvdQeImjHB4GMfI70ih01AqPV9A2mT8wnY9tRgX6WqtAs1YXQCn5D2/
Ul6L6Agnle3n6AJquZ3R67rxubu8XLmM6TY+2sqfveR8HmzahFAkkKaJ8BmHPya7
DViQ0ni7qsT9SL3t+N8Pg1fShH3nVE6fpjuwSfywhYdAn/1gr9y9sCAloOKJWOQk
/Rg8q4gVGOEMgmNMafneqnZjetPwLfSykcdo5EAbacWTMaA84a3pq5BEyBNw6sWH
Pxo1x8CsU5dyFrbwqgxUffJwelO0Xl/CuC+5GfgrlVqij467AVsFfIf18JkMOVEY
AKqQ+zUhw0M8gmK4FeZQRwAsXNG01Cb+2sibXMibFyKIKaBs0kBO6w3m5CGKhhkI
IMGDldDPCDtrigg8rYmgxA3yikyaqFxdq+Q3Wejc6IjDzYAkUJ5FUJyCaLDxaS70
4U+3hcPiDjhP1WU7yYew8LcIEM6zYrGnsKhqZ6bFnn5Vyz5LD+nVUfg5UHQYwd6I
N2KAZR5gDJfublCmpKfOJjQssknamGjp55qbUZk8BYBRHRi6R309rWARJoj53h2I
fX9EIVmLrDfi6OJE0lla26sIUkLytjBy21GPLUdPfgHYbT4upE4=
=YS4r
-----END PGP SIGNATURE-----

M
M
Markku Korkeala wrote on 23 Apr 01:54 -0700
[PATCH v2 1/1] gnu: Add python-robotframework-requests.
(address . 70483@debbugs.gnu.org)(name . Markku Korkeala)(address . markku.korkeala@iki.fi)
f691c9870d7a6bf09e5ebcfebd0a0de6435b02c5.1713861076.git.markku.korkeala@iki.fi
* gnu/packages/python-web.scm (python-robotframework-requests): New variable.

Change-Id: I01d814d1a9e20d26e9bfa4a0a77ba91577da2bd8
---
Improved the patch according to feedback:

Moved package to gnu/packages/python-web.scm
Switched to pyproject-build-system
Simplified the test phase
Removed duplicate and unnecessary dependencies
Fixed description identation

gnu/packages/python-web.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)

Toggle diff (50 lines)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 5a532f8460..2d0695d5a4 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -64,6 +64,7 @@
;;; Copyright © 2024 Troy Figiel <troy@troyfigiel.com>
;;; Copyright © 2024 Sharlatan Hellseher <sharlatanus@gmail.com>
;;; Copyright © 2024 normally_js <normally_js@posteo.net>
+;;; Copyright © 2024 Markku Korkeala <markku.korkeala@iki.fi>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -3763,6 +3764,33 @@ (define-public python-requests-ftp
adapter for use with the Requests library.")
(license license:asl2.0)))
+(define-public python-robotframework-requests
+ (package
+ (name "python-robotframework-requests")
+ (version "0.9.7")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/MarketSquare/robotframework-requests")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "077j8p5k41v53slyv8h32fcmqfi7m6z3r4gmyqqaawm5szfmy61m"))))
+ (build-system pyproject-build-system)
+ (arguments
+ '(#:test-flags '("-v" "utests/")))
+ (propagated-inputs (list python-requests python-robotframework))
+ (native-inputs (list python-flask python-mock python-pytest
+ python-pytest-cov))
+ (home-page "https://github.com/MarketSquare/robotframework-requests")
+ (synopsis "Robot Framework keyword library wrapper around requests")
+ (description
+ "RequestsLibrary is a Robot Framework library aimed to provide HTTP
+api testing functionalities by wrapping the well known Python Requests
+Library.")
+ (license license:expat)))
+
(define-public python-aioftp
(package
(name "python-aioftp")

base-commit: ee9cf4f00bcb8966fa125787e8534580b270bb99
--
2.41.0
S
S
Sharlatan Hellseher wrote on 24 Apr 02:36 -0700
[PATCH 1/1] gnu: Add python-robotframework-requests.
(address . 70483-done@debbugs.gnu.org)
87r0evcdai.fsf@gmail.com
Pushed as 22d11dab8b09d8aed780d5c1086c9e8e5589bc70 to master with minor
modifications.

--
Oleg
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEmEeB3micIcJkGAhndtcnv/Ys0rUFAmYo0rUACgkQdtcnv/Ys
0rXmlw//fcnpuLGIPLeizcQE0mLDV3k6mdLB8UPt6vj52Y4xLDBaZ/9Are2Eci5r
wQ5H1UKHYt7UJ9RvIYTjjaVHGuAZ0zCL/XQMoB6NS9z7LCnErcx+ufwcgfj/Kqr1
iuw5ZWgVABS5tbEmOON6OxqwUwuBXdzoj7J6dOlmKCOWi+Az0VEtyltxkaxh9BSx
sayrFHVTqcBRBJKmIojxvKlXWki1jxchhZRI5M7jcUs4rCqtzi0eGAnAsuMJPrfy
KMwra6JvdGldFvRq55PBbDF28MXu70u10+1zPCez2Za8UdeM3BMe0+Wnqr133LOB
J5v++sjAHUKRyL8KnVx+Zy7LLaJ8qRZ5WTMLi9wA+YBgK+2S117p1bLNRVjxRt+H
3JJlY2dKeGl0JKU/tJ02Y7oaJwMZ9vu7JrjIWHP3xRIhBZYTOqDxpPQ9YDQbxgiS
ZEoUIIk9Tc64VltQq/EzAkNeX5W+xcwWc4yZTUtcKolDd290/cr/MTyqFMiSfUZ5
9+eNmiKKTMIYDGWMRbXj8cKxlsDPefS5Fc/2qAQM4Ibp6AnJKZsLpP/Ux7DdiLKT
X0Ot9GG+MQDUwlnZAhrlsMdg5dbokc5ic4gzj4IqvGaQXRDsBbSH7ZfSJB6vHze8
tk0OHZGl4wkqv6qmcuK4krV+x0dytO1ltagu9k0RueJMLYZKq1Q=
=Orh8
-----END PGP SIGNATURE-----

Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 70483@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 70483
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch