blob: 2657e9740a60e0eecf8ae6cb90222e9e31bd41d9 (
plain) (
blame)
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
44
45
46
47
48
49
50
51
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, httpx
, poetry-core
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, starlette
}:
buildPythonPackage rec {
pname = "starlette-context";
version = "0.3.6";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "tomwojcik";
repo = "starlette-context";
rev = "refs/tags/v${version}";
hash = "sha256-ZKwE2M86clYKdptd0o/j8VYUOj/Y/72uUnpxFbJ65vw=";
};
build-system = [
poetry-core
];
dependencies = [
starlette
];
nativeCheckInputs = [
httpx
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"starlette_context"
];
meta = with lib; {
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 = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
|