[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
23/26: gnu: Add python-starsessions-for-pytorch-lightning.
From: |
guix-commits |
Subject: |
23/26: gnu: Add python-starsessions-for-pytorch-lightning. |
Date: |
Wed, 10 May 2023 13:31:01 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 2ebd5b9adf832f64a78926d42e9a36296ea7e570
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed May 10 18:08:09 2023 +0200
gnu: Add python-starsessions-for-pytorch-lightning.
* gnu/packages/python-web.scm (python-starsessions-for-pytorch-lightning):
New variable.
---
gnu/packages/python-web.scm | 53 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 897386101b..c48204b966 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -8294,6 +8294,59 @@ Interface) framework/toolkit for building async web
services in Python.")
;; XXX: unclear why these tests fail with a decoding error.
'(list "-k" "not test_gzip_ignored_for_responses_with_encoding_set")))))
+;; A newer version exists, but python-pytorch-lightning requires <2.0.
+(define-public python-starsessions-for-pytorch-lightning
+ (package
+ (name "python-starsessions")
+ (version "1.3.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/alex-oleshkevich/starsessions")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "00dkdhp22vfmcn0w4y7f2ii8m1xj5i7409x58g3l8lvk6v5ng2nf"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ ;; These tests require a running redis server
+ '(list "--ignore=tests/backends/test_redis.py"
+ ;; XXX: this failure indicates a real compatibility problem, but
+ ;; it seems restricted to the tests only.
+ ;; AttributeError: 'Cookies' object has no attribute
+ ;; 'clear_session_cookies'
+ "-k" "not test_session_clears_on_tab_close")
+ #:phases
+ '(modify-phases %standard-phases
+ (add-after 'unpack 'compatibilitiy
+ (lambda _
+ ;; aioredis has been renamed
+ (substitute* "starsessions/backends/redis.py"
+ (("aioredis") "redis")))))))
+ (propagated-inputs
+ (list python-redis
+ python-itsdangerous
+ python-starlette-for-fastapi-0.88))
+ (native-inputs
+ (list python-black
+ python-flake8
+ python-httpx
+ python-mypy
+ python-poetry-core
+ python-pytest
+ python-pytest-asyncio
+ python-requests))
+ (home-page "https://github.com/alex-oleshkevich/starsessions")
+ (synopsis "Pluggable session support for Starlette and FastAPI")
+ (description
+ "This package adds pluggable session backends and ships default
+@code{InMemoryBackend} and @code{CookieBackend} implementations for Starlette
+and FastAPI.")
+ (license license:expat)))
+
(define-public python-fastapi
(package
(name "python-fastapi")
- branch master updated (e2eb43f945 -> b7534e4b5d), guix-commits, 2023/05/10
- 02/26: gnu: Add python-deepdiff., guix-commits, 2023/05/10
- 22/26: gnu: Add python-typeshed-client., guix-commits, 2023/05/10
- 16/26: gnu: Add python-starlette-for-fastapi-0.88., guix-commits, 2023/05/10
- 08/26: gnu: Add python-types-setuptools., guix-commits, 2023/05/10
- 10/26: gnu: python-blessed: Update to 1.20.0., guix-commits, 2023/05/10
- 23/26: gnu: Add python-starsessions-for-pytorch-lightning.,
guix-commits <=
- 20/26: gnu: python-arrow: Update to 1.2.3., guix-commits, 2023/05/10
- 13/26: gnu: python-scikit-optimize: Fix build with newer numpy and sklearn., guix-commits, 2023/05/10
- 19/26: gnu: Add python-types-requests., guix-commits, 2023/05/10
- 01/26: gnu: python-pytorch: Update to 1.13.1., guix-commits, 2023/05/10
- 06/26: gnu: Add python-lightning-utilities., guix-commits, 2023/05/10
- 15/26: gnu: Add python-inquirer., guix-commits, 2023/05/10
- 25/26: gnu: Add python-jsonargparse., guix-commits, 2023/05/10
- 26/26: gnu: Add python-pytorch-lightning., guix-commits, 2023/05/10
- 14/26: gnu: Add python-readchar., guix-commits, 2023/05/10
- 07/26: gnu: Add python-mir-eval., guix-commits, 2023/05/10