blob: 1aa054adc8a3f85c2d35c7d3f712e30e54dccded (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
httpx,
poetry-core,
pytest-asyncio,
pytestCheckHook,
starlette,
}:
buildPythonPackage rec {
pname = "starlette-context";
version = "0.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "tomwojcik";
repo = "starlette-context";
tag = "v${version}";
hash = "sha256-PzVZ458TdBLdbFJDN+X8hVU5zsRxcesihoDB+jRaKAg=";
};
build-system = [ poetry-core ];
dependencies = [ starlette ];
nativeCheckInputs = [
httpx
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "starlette_context" ];
meta = {
description = "Middleware for Starlette that allows you to store and access the context data of a request";
homepage = "https://github.com/tomwojcik/starlette-context";
changelog = "https://github.com/tomwojcik/starlette-context/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|