Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

58 lines
1001 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
itsdangerous,
python-multipart,
# tests
asgi-lifespan,
pytestCheckHook,
starlette,
httpx,
pytest-asyncio,
}:
buildPythonPackage rec {
pname = "asgi-csrf";
version = "0.11";
pyproject = true;
# PyPI tarball doesn't include tests directory
src = fetchFromGitHub {
owner = "simonw";
repo = "asgi-csrf";
tag = version;
hash = "sha256-STitMWabAPz61AU+5gFJSHBBqf67Q8UtS6ks8Q/ZybY=";
};
build-system = [ setuptools ];
dependencies = [
itsdangerous
python-multipart
];
nativeCheckInputs = [
asgi-lifespan
httpx
pytest-asyncio
pytestCheckHook
starlette
];
pythonImportsCheck = [ "asgi_csrf" ];
meta = with lib; {
description = "ASGI middleware for protecting against CSRF attacks";
license = licenses.asl20;
homepage = "https://github.com/simonw/asgi-csrf";
maintainers = [ maintainers.ris ];
};
}