granian: init at 1.5.2

This commit is contained in:
lucastso10 2024-08-27 13:52:15 -03:00
parent 9cf57d47d5
commit ae9471fd64
2 changed files with 1272 additions and 0 deletions

1222
pkgs/by-name/gr/granian/Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,50 @@
{
lib,
fetchFromGitHub,
rustPlatform,
python3Packages,
libiconv,
}:
python3Packages.buildPythonApplication rec {
pname = "granian";
version = "1.5.2";
pyproject = true;
src = fetchFromGitHub {
owner = "emmett-framework";
repo = "granian";
rev = "v${version}";
hash = "sha256-3kwdPLOkKKSY1w42av3ejarrRKNtai8KB80ZrujSjPo=";
};
cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;
outputHashes = {
"pyo3-log-0.11.0" = "sha256-UU8064vM7cf20lwfifyPC205CY4tIgif0slDz/Pjf9Q=";
};
};
nativeBuildInputs = with rustPlatform; [
cargoSetupHook
maturinBuildHook
];
buildInputs = [
libiconv
];
dependencies = [
python3Packages.uvloop
python3Packages.click
];
meta = {
description = "Rust HTTP server for Python ASGI/WSGI/RSGI applications";
homepage = "https://github.com/emmett-framework/granian";
license = lib.licenses.bsd3;
mainProgram = "granian";
maintainers = with lib.maintainers; [ lucastso10 ];
platforms = lib.platforms.unix;
};
}