python3Packages.smg-grpc-servicer: init at 0.5.3

This commit is contained in:
Sizhe Zhao
2026-06-06 09:49:59 +00:00
committed by Gaetan Lepage
parent e534847c74
commit c32084fc1d
2 changed files with 59 additions and 0 deletions
@@ -0,0 +1,57 @@
{
lib,
buildPythonPackage,
fetchPypi,
# build-system
setuptools,
# dependencies
grpcio,
grpcio-health-checking,
grpcio-reflection,
smg-grpc-proto,
}:
buildPythonPackage (finalAttrs: {
pname = "smg-grpc-servicer";
version = "0.5.3";
pyproject = true;
__structuredAttrs = true;
# No tags on GitHub
src = fetchPypi {
format = "setuptools";
pname = "smg_grpc_servicer";
inherit (finalAttrs) version;
hash = "sha256-/stjZWK+5XSTmD9iIRWq+dqthd5kRhty6F7Ffvbfr74=";
};
build-system = [
setuptools
];
dependencies = [
grpcio
grpcio-health-checking
grpcio-reflection
smg-grpc-proto
];
postInstall = ''
find $out -name __pycache__ -type d | xargs rm -rv
'';
env.PYTHONDONTWRITEBYTECODE = 1;
pythonImportsCheck = [ "smg_grpc_servicer" ];
# no tests
doCheck = false;
meta = {
description = "SMG gRPC servicer implementations for LLM inference engines (vLLM, SGLang, MLX)";
homepage = "https://github.com/lightseekorg/smg/tree/main/grpc_servicer";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ prince213 ];
};
})
+2
View File
@@ -18222,6 +18222,8 @@ self: super: with self; {
smg-grpc-proto = callPackage ../development/python-modules/smg-grpc-proto { };
smg-grpc-servicer = callPackage ../development/python-modules/smg-grpc-servicer { };
smhi-pkg = callPackage ../development/python-modules/smhi-pkg { };
smllib = callPackage ../development/python-modules/smllib { };