Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
903 B · 52 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, # build inputs starlette, brotli, # check inputs httpx, requests, mypy, brotlipy,}:let pname = "brotli-asgi"; version = "1.4.0";inbuildPythonPackage { inherit pname version; format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "fullonic"; repo = "brotli-asgi"; rev = "v${version}"; hash = "sha256-hQ6CSXnAoUSaKUSmE+2GHZemkFqd8Dc5+OvcUD7/r5Y="; };
propagatedBuildInputs = [ starlette brotli ];
pythonImportsCheck = [ "brotli_asgi" ];
nativeCheckInputs = [ httpx requests mypy brotlipy ];
meta = with lib; { description = "Compression AGSI middleware using brotli"; homepage = "https://github.com/fullonic/brotli-asgi"; license = licenses.mit; maintainers = with maintainers; [ happysalada ]; };}