aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2019-08-19 13:08:50 +0200
committerMarius Bakke <marius@gnu.org>2020-11-21 01:21:32 +0100
commit079de0b14267da0e46446cf54b9fc18f6e33b452 (patch)
tree3dd86807f971d6987e527e12f3eb0f96f07a665a /gnu/packages
parent484459fa478da3f5cf5e4db1fd949f4070de022a (diff)
downloadguix-079de0b14267da0e46446cf54b9fc18f6e33b452.tar.gz
guix-079de0b14267da0e46446cf54b9fc18f6e33b452.zip
gnu: Add python-aws-xray-sdk.
* gnu/packages/python-web.scm (python-aws-xray-sdk): New public variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/python-web.scm68
1 files changed, 68 insertions, 0 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 444561a8f9..14e40b1f07 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -277,6 +277,74 @@ WSGI. This package includes libraries for implementing ASGI servers.")
;; looks like the user can choose a license.
(license (list license:gpl3+ license:lgpl3+ license:expat))))
+(define-public python-aws-xray-sdk
+ (package
+ (name "python-aws-xray-sdk")
+ (version "2.6.0")
+ (home-page "https://github.com/aws/aws-xray-sdk-python")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference (url home-page) (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "12fzr0ylpa1lx3xr1x2f1jx8iiyzcr6g57fb9jign0j0lxdlbzpv"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (add-after 'unpack 'disable-tests
+ (lambda _
+ (for-each delete-file
+ '(;; These tests require packages not yet in Guix.
+ "tests/ext/aiobotocore/test_aiobotocore.py"
+ "tests/ext/aiohttp/test_middleware.py"
+ "tests/ext/pg8000/test_pg8000.py"
+ "tests/ext/psycopg2/test_psycopg2.py"
+ "tests/ext/pymysql/test_pymysql.py"
+ "tests/ext/pynamodb/test_pynamodb.py"
+ "tests/test_async_recorder.py"
+
+ ;; FIXME: Why is this failing?
+ "tests/test_patcher.py"
+
+ ;; TODO: How to configure Django for these tests.
+ "tests/ext/django/test_db.py"
+ "tests/ext/django/test_middleware.py"
+
+ ;; These tests want to access httpbin.org.
+ "tests/ext/requests/test_requests.py"
+ "tests/ext/httplib/test_httplib.py"
+ "tests/ext/aiohttp/test_client.py"))))
+ (replace 'check
+ (lambda _
+ (setenv "PYTHONPATH"
+ (string-append "./build/lib:.:"
+ (getenv "PYTHONPATH")))
+ (invoke "pytest" "-vv" "tests"))))))
+ (native-inputs
+ `(;; These are required for the test suite.
+ ("python-bottle" ,python-bottle)
+ ("python-flask" ,python-flask)
+ ("python-flask-sqlalchemy" ,python-flask-sqlalchemy)
+ ("python-pymysql" ,python-pymysql)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-aiohttp" ,python-pytest-aiohttp)
+ ("python-requests" ,python-requests)
+ ("python-sqlalchemy" ,python-sqlalchemy)
+ ("python-webtest" ,python-webtest)))
+ (propagated-inputs
+ `(("python-aiohttp" ,python-aiohttp)
+ ("python-botocore" ,python-botocore)
+ ("python-future" ,python-future)
+ ("python-jsonpickle" ,python-jsonpickle)
+ ("python-urllib3" ,python-urllib3)
+ ("python-wrapt" ,python-wrapt)))
+ (synopsis "Profile applications on AWS X-Ray")
+ (description
+ "The AWS X-Ray SDK for Python enables Python developers to record and
+emit information from within their applications to the AWS X-Ray service.")
+ (license license:asl2.0)))
+
(define-public python-falcon
(package
(name "python-falcon")