Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 57 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ 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 ]; };}