python3Packages.starsessions: init at 2.2.1
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user