Files
nixpkgs/pkgs/development/python-modules/asgi-csrf/default.nix
Robert Schütz 44573c77ca python3Packages.asgi-csrf: mark broken
(cherry picked from commit 1355d225b6)
(cherry picked from commit b928e51eac)
2026-06-22 08:01:02 +02:00

60 lines
1.1 KiB
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 = {
# https://github.com/simonw/asgi-csrf/issues/38
broken = lib.versionAtLeast python-multipart.version "0.0.26";
description = "ASGI middleware for protecting against CSRF attacks";
license = lib.licenses.asl20;
homepage = "https://github.com/simonw/asgi-csrf";
maintainers = [ lib.maintainers.ris ];
};
}