python3Packages.starsessions: init at 2.2.1

Changed files
+61
pkgs
development
python-modules
starsessions
top-level
+59
pkgs/development/python-modules/starsessions/default.nix
···
+
{
+
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
pkgs/top-level/python-packages.nix
···
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 { };