python3Packages.starsessions: init at 2.2.1

This commit is contained in:
Pol Dellaiera
2025-09-27 18:19:19 +02:00
parent f821c27f7a
commit 8d85b6d71b
2 changed files with 61 additions and 0 deletions
@@ -0,0 +1,59 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
itsdangerous,
redis,
starlette,
pytestCheckHook,
pytest-asyncio,
pytest-cov-stub,
httpx,
}:
buildPythonPackage rec {
pname = "starsessions";
version = "2.2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "alex-oleshkevich";
repo = "starsessions";
tag = "v${version}";
hash = "sha256-JI044sn6LQI37PvSLdz2dooa3v5qdHmp6DZD0p7VzJU=";
};
build-system = [ poetry-core ];
dependencies = [
itsdangerous
starlette
];
pythonImportsCheck = [ "starsessions" ];
optional-dependencies = {
redis = [
redis
];
};
nativeCheckInputs = [
httpx
pytestCheckHook
pytest-asyncio
pytest-cov-stub
];
disabledTestPaths = [
"tests/backends/test_redis.py" # requires a running redis instance
];
meta = {
description = "Advanced sessions for Starlette and FastAPI frameworks";
homepage = "https://github.com/alex-oleshkevich/starsessions";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ drupol ];
};
}
+2
View File
@@ -17622,6 +17622,8 @@ self: super: with self; {
starlink-grpc-core = callPackage ../development/python-modules/starlink-grpc-core { };
starsessions = callPackage ../development/python-modules/starsessions { };
stashy = callPackage ../development/python-modules/stashy { };
static3 = callPackage ../development/python-modules/static3 { };