mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-21 20:34:06 +00:00
granian: init at 1.5.2 (#337746)
This commit is contained in:
commit
17bcadc34a
@ -12270,6 +12270,12 @@
|
||||
githubId = 15693688;
|
||||
name = "Lucas Eduardo Wendt";
|
||||
};
|
||||
lucastso10 = {
|
||||
email = "lucastso10@gmail.com";
|
||||
github = "lucastso10";
|
||||
githubId = 84486266;
|
||||
name = "Lucas Teixeira Soares";
|
||||
};
|
||||
lucc = {
|
||||
email = "lucc+nix@posteo.de";
|
||||
github = "lucc";
|
||||
|
1222
pkgs/by-name/gr/granian/Cargo.lock
generated
Normal file
1222
pkgs/by-name/gr/granian/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
50
pkgs/by-name/gr/granian/package.nix
Normal file
50
pkgs/by-name/gr/granian/package.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user