nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 43 lines 997 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 httpx, 6 hatchling, 7 pytest-asyncio, 8 pytestCheckHook, 9 starlette, 10}: 11 12buildPythonPackage (finalAttrs: { 13 pname = "starlette-context"; 14 version = "0.5.1"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "tomwojcik"; 19 repo = "starlette-context"; 20 tag = "v${finalAttrs.version}"; 21 hash = "sha256-cxhTrLLIjlqaR07VVgHmvYctk7+7fDjbGb39PbJbGgk="; 22 }; 23 24 build-system = [ hatchling ]; 25 26 dependencies = [ starlette ]; 27 28 nativeCheckInputs = [ 29 httpx 30 pytest-asyncio 31 pytestCheckHook 32 ]; 33 34 pythonImportsCheck = [ "starlette_context" ]; 35 36 meta = { 37 description = "Middleware for Starlette that allows you to store and access the context data of a request"; 38 homepage = "https://github.com/tomwojcik/starlette-context"; 39 changelog = "https://github.com/tomwojcik/starlette-context/releases/tag/v${finalAttrs.src.tag}"; 40 license = lib.licenses.mit; 41 maintainers = with lib.maintainers; [ fab ]; 42 }; 43})