synix/pkgs/mcpo/default.nix
sid b29b0895a5
All checks were successful
Build tests / build-hosts (pull_request) Successful in 3m51s
Flake check / flake-check (pull_request) Successful in 3m50s
update flake. update pkgs. new hp api
2026-04-15 22:23:01 +02:00

53 lines
982 B
Nix

# See https://github.com/NixOS/nixpkgs/pull/410836
{
lib,
python3,
fetchFromGitHub,
}:
python3.pkgs.buildPythonApplication rec {
pname = "mcpo";
version = "0.0.20";
pyproject = true;
src = fetchFromGitHub {
owner = "open-webui";
repo = "mcpo";
rev = "v${version}";
hash = "sha256-tA1KdcfmNPuqPbwE66jRY85tsrOKjPImsxSoGsW5ZD4=";
};
build-system = [
python3.pkgs.hatchling
];
dependencies = with python3.pkgs; [
click
fastapi
mcp
passlib
pydantic
pyjwt
python-dotenv
typer
uvicorn
watchdog
];
pythonRelaxDeps = [
"mcp"
];
pythonImportsCheck = [
"mcpo"
];
meta = {
description = "A simple, secure MCP-to-OpenAPI proxy server";
homepage = "https://github.com/open-webui/mcpo";
changelog = "https://github.com/open-webui/mcpo/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
mainProgram = "mcpo";
};
}