feat: add nextcloud-mcp-server with 20 inlined Python deps #1

Merged
luis merged 29 commits from :main into main 2026-05-28 08:55:26 +02:00
Showing only changes of commit b027fd26cd - Show all commits

View File

@@ -6,148 +6,121 @@
}:
let
mkPy = { pname, version, propagatedBuildInputs ? [ ], nativeBuildInputs ? [ ], src, meta ? { }, ... }@args:
mkPy = { pname, version, src, propagatedBuildInputs ? [ ], meta ? { }, ... }@args:
python3Packages.buildPythonPackage ({
inherit pname version src;
pyproject = true;
build-system = [ python3Packages.hatchling ];
inherit nativeBuildInputs propagatedBuildInputs;
inherit propagatedBuildInputs;
doCheck = false;
inherit meta;
} // builtins.removeAttrs args [ "pname" "version" "propagatedBuildInputs" "nativeBuildInputs" "src" "meta" ]);
} // builtins.removeAttrs args [ "pname" "version" "src" "propagatedBuildInputs" "meta" "pyproject" "build-system" "doCheck" ]);
# ── 4 packages that work from PyPI ──
pythonvcard4 = python3Packages.buildPythonPackage {
pname = "pythonvcard4"; version = "0.2.0"; format = "wheel";
src = fetchPypi { pname = "pythonvcard4"; version = "0.2.0"; hash = "sha256-3OMTVd1QruU3+Ig96G8wFRDkB7wXVaaOyNUFW2T1xmA="; format = "wheel"; dist = "py3"; python = "py3"; };
fetchWheel = { pname, version, hash, propagatedBuildInputs ? [ ], meta ? { } }:
python3Packages.buildPythonPackage {
inherit pname version;
format = "wheel";
src = fetchurl {
url = "https://files.pythonhosted.org/packages/placeholder/${pname}-${version}-py3-none-any.whl";
inherit hash;
};
inherit propagatedBuildInputs;
doCheck = false;
inherit meta;
};
# ── 20 dependency packages ──
pythonvcard4 = fetchWheel {
pname = "pythonvcard4"; version = "0.2.0"; hash = lib.fakeHash;
meta = with lib; { description = "vCard parsing"; homepage = "https://github.com/GNOME/python-vcard4"; license = licenses.gpl3Plus; };
};
prometheus-client = python3Packages.buildPythonPackage {
pname = "prometheus_client"; version = "0.25.0"; format = "wheel";
src = fetchPypi { pname = "prometheus_client"; version = "0.25.0"; hash = "sha256-1a7InjSabsIwgF0N+ILzgH90/WwaL6hoZOPCJ5BZ/tE="; format = "wheel"; dist = "py3"; python = "py3"; };
doCheck = false;
prometheus-client = fetchWheel {
pname = "prometheus_client"; version = "0.25.0"; hash = lib.fakeHash;
meta = with lib; { description = "Prometheus client"; homepage = "https://github.com/prometheus/client_python"; license = licenses.asl20; };
};
importlib-metadata = python3Packages.buildPythonPackage {
pname = "importlib_metadata"; version = "8.7.1"; format = "wheel";
src = fetchPypi { pname = "importlib_metadata"; version = "8.7.1"; hash = "sha256-Wh+Avx2qSJSVBx77sJXXWmNM8oqLwplYEkQGO1MXYVE="; format = "wheel"; dist = "py3"; python = "py3"; };
propagatedBuildInputs = with python3Packages; [ zipp ];
doCheck = false;
meta = with lib; { description = "Importlib metadata"; homepage = "https://github.com/python/importlib_metadata"; license = licenses.asl20; };
};
x-wr-timezone = python3Packages.buildPythonPackage {
pname = "x_wr_timezone"; version = "2.0.1"; format = "wheel";
src = fetchPypi { pname = "x_wr_timezone"; version = "2.0.1"; hash = "sha256-50pTufT33vgThFXCQOZeR8Ikd4vOPAJPzW2iy+kcoDg="; format = "wheel"; dist = "py3"; python = "py3"; };
propagatedBuildInputs = with python3Packages; [ icalendar click ];
doCheck = false;
meta = with lib; { description = "X-WR-TIMEZONE"; homepage = "https://github.com/niccokunzmann/x-wr-timezone"; license = licenses.lgpl3Plus; };
};
# ── 16 packages from GitHub ──
python-json-logger = mkPy {
pname = "python-json-logger"; version = "4.1.0";
src = fetchFromGitHub { owner = "nhairs"; repo = "python-json-logger"; rev = "v4.1.0"; hash = "sha256-hJ29rDP04apLf1zaP1vQrYF5xm4GtKZlvno97b7g+hg="; };
python-json-logger = fetchWheel {
pname = "python_json_logger"; version = "4.1.0"; hash = lib.fakeHash;
meta = with lib; { description = "JSON logger"; homepage = "https://github.com/nhairs/python-json-logger"; license = licenses.bsd2; };
};
googleapis-common-protos = mkPy {
pname = "googleapis-common-protos"; version = "1.75.0";
src = fetchFromGitHub { owner = "googleapis"; repo = "python-api-common-protos"; rev = "67f1dda3e5e9ad3e18b5a12ce2c7bf6f3d2c9a8c"; hash = lib.fakeHash; };
importlib-metadata = fetchWheel {
pname = "importlib_metadata"; version = "8.7.1"; hash = lib.fakeHash;
propagatedBuildInputs = with python3Packages; [ zipp ];
meta = with lib; { description = "Importlib metadata"; homepage = "https://github.com/python/importlib_metadata"; license = licenses.asl20; };
};
googleapis-common-protos = fetchWheel {
pname = "googleapis_common_protos"; version = "1.75.0"; hash = lib.fakeHash;
propagatedBuildInputs = with python3Packages; [ protobuf ];
meta = with lib; { description = "Common protos"; homepage = "https://github.com/googleapis/python-api-common-protos"; license = licenses.asl20; };
};
opentelemetry-api = mkPy {
pname = "opentelemetry-api"; version = "1.39.1";
src = fetchFromGitHub { owner = "open-telemetry"; repo = "opentelemetry-python"; rev = "v1.39.1"; hash = "sha256-GEcGADUdci6W2vfeXt/rjQOL/7r4RBxgyq+vy6tivBc="; };
sourceRoot = "source/opentelemetry-api";
opentelemetry-api = fetchWheel {
pname = "opentelemetry_api"; version = "1.39.1"; hash = lib.fakeHash;
propagatedBuildInputs = with python3Packages; [ deprecated ];
meta = with lib; { description = "OpenTelemetry API"; homepage = "https://github.com/open-telemetry/opentelemetry-python"; license = licenses.asl20; };
};
opentelemetry-proto = mkPy {
pname = "opentelemetry-proto"; version = "1.39.1";
src = fetchFromGitHub { owner = "open-telemetry"; repo = "opentelemetry-python"; rev = "v1.39.1"; hash = "sha256-GEcGADUdci6W2vfeXt/rjQOL/7r4RBxgyq+vy6tivBc="; };
sourceRoot = "source/opentelemetry-proto";
opentelemetry-proto = fetchWheel {
pname = "opentelemetry_proto"; version = "1.39.1"; hash = lib.fakeHash;
propagatedBuildInputs = with python3Packages; [ protobuf ];
meta = with lib; { description = "OpenTelemetry Proto"; homepage = "https://github.com/open-telemetry/opentelemetry-python"; license = licenses.asl20; };
};
opentelemetry-semantic-conventions = mkPy {
pname = "opentelemetry-semantic-conventions"; version = "0.60b1";
src = fetchFromGitHub { owner = "open-telemetry"; repo = "semantic-conventions"; rev = "7961b1c3f9a8e3f2d4a6b8c0e5d7f9a2b4c6e8d0"; hash = lib.fakeHash; };
sourceRoot = "${src.name}/model";
opentelemetry-semantic-conventions = fetchWheel {
pname = "opentelemetry_semantic_conventions"; version = "0.60b1"; hash = lib.fakeHash;
propagatedBuildInputs = with python3Packages; [ deprecated ];
meta = with lib; { description = "OTel semconv"; homepage = "https://github.com/open-telemetry/semantic-conventions"; license = licenses.asl20; };
};
opentelemetry-sdk = mkPy {
pname = "opentelemetry-sdk"; version = "1.39.1";
src = fetchFromGitHub { owner = "open-telemetry"; repo = "opentelemetry-python"; rev = "v1.39.1"; hash = "sha256-GEcGADUdci6W2vfeXt/rjQOL/7r4RBxgyq+vy6tivBc="; };
sourceRoot = "source/opentelemetry-sdk";
opentelemetry-sdk = fetchWheel {
pname = "opentelemetry_sdk"; version = "1.39.1"; hash = lib.fakeHash;
propagatedBuildInputs = with python3Packages; [ typing-extensions ];
meta = with lib; { description = "OpenTelemetry SDK"; homepage = "https://github.com/open-telemetry/opentelemetry-python"; license = licenses.asl20; };
};
opentelemetry-util-http = mkPy {
pname = "opentelemetry-util-http"; version = "0.60b1";
src = fetchFromGitHub { owner = "open-telemetry"; repo = "opentelemetry-python-contrib"; rev = "v0.60b1"; hash = "sha256-tCtqLT+so4hBvjPB/hFogXzuje1YdGFtq9BmVKKyqoQ="; };
sourceRoot = "source/util/opentelemetry-util-http";
x-wr-timezone = fetchWheel {
pname = "x_wr_timezone"; version = "2.0.1"; hash = lib.fakeHash;
propagatedBuildInputs = with python3Packages; [ icalendar click ];
meta = with lib; { description = "X-WR-TIMEZONE"; homepage = "https://github.com/niccokunzmann/x-wr-timezone"; license = licenses.lgpl3Plus; };
};
opentelemetry-util-http = fetchWheel {
pname = "opentelemetry_util_http"; version = "0.60b1"; hash = lib.fakeHash;
meta = with lib; { description = "OTel HTTP utils"; homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib"; license = licenses.asl20; };
};
opentelemetry-exporter-otlp-proto-common = mkPy {
pname = "opentelemetry-exporter-otlp-proto-common"; version = "1.39.1";
src = fetchFromGitHub { owner = "open-telemetry"; repo = "opentelemetry-python"; rev = "v1.39.1"; hash = "sha256-GEcGADUdci6W2vfeXt/rjQOL/7r4RBxgyq+vy6tivBc="; };
sourceRoot = "source/exporter/opentelemetry-exporter-otlp-proto-common";
opentelemetry-exporter-otlp-proto-common = fetchWheel {
pname = "opentelemetry_exporter_otlp_proto_common"; version = "1.39.1"; hash = lib.fakeHash;
meta = with lib; { description = "OTLP proto common"; homepage = "https://github.com/open-telemetry/opentelemetry-python"; license = licenses.asl20; };
};
opentelemetry-instrumentation = mkPy {
pname = "opentelemetry-instrumentation"; version = "0.60b1";
src = fetchFromGitHub { owner = "open-telemetry"; repo = "opentelemetry-python-contrib"; rev = "v0.60b1"; hash = "sha256-tCtqLT+so4hBvjPB/hFogXzuje1YdGFtq9BmVKKyqoQ="; };
sourceRoot = "source/opentelemetry-instrumentation";
opentelemetry-instrumentation = fetchWheel {
pname = "opentelemetry_instrumentation"; version = "0.60b1"; hash = lib.fakeHash;
propagatedBuildInputs = with python3Packages; [ wrapt packaging ];
meta = with lib; { description = "OTel instrumentation"; homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib"; license = licenses.asl20; };
};
recurring-ical-events = mkPy {
pname = "recurring-ical-events"; version = "3.8.2";
src = fetchFromGitHub { owner = "niccokunzmann"; repo = "python-recurring-ical-events"; rev = "v3.8.2"; hash = "sha256-/xTv/JovC8IVZz14ygnEL5vg/W8xR4Ie78hTi+gG58M="; };
recurring-ical-events = fetchWheel {
pname = "recurring_ical_events"; version = "3.8.2"; hash = lib.fakeHash;
propagatedBuildInputs = with python3Packages; [ icalendar python-dateutil ];
meta = with lib; { description = "Recurring iCal events"; homepage = "https://github.com/niccokunzmann/python-recurring-ical-events"; license = licenses.lgpl3Plus; };
};
opentelemetry-exporter-otlp-proto-grpc = mkPy {
pname = "opentelemetry-exporter-otlp-proto-grpc"; version = "1.39.1";
src = fetchFromGitHub { owner = "open-telemetry"; repo = "opentelemetry-python"; rev = "v1.39.1"; hash = "sha256-GEcGADUdci6W2vfeXt/rjQOL/7r4RBxgyq+vy6tivBc="; };
sourceRoot = "source/exporter/opentelemetry-exporter-otlp-proto-grpc";
opentelemetry-exporter-otlp-proto-grpc = fetchWheel {
pname = "opentelemetry_exporter_otlp_proto_grpc"; version = "1.39.1"; hash = lib.fakeHash;
propagatedBuildInputs = with python3Packages; [ grpcio deprecated ];
meta = with lib; { description = "OTLP gRPC exporter"; homepage = "https://github.com/open-telemetry/opentelemetry-python"; license = licenses.asl20; };
};
qdrant-client = mkPy {
pname = "qdrant-client"; version = "1.18.0";
src = fetchFromGitHub { owner = "qdrant"; repo = "qdrant-client"; rev = "v1.18.0"; hash = "sha256-ZBP1D67u+KZmBi614nuToauI+xhdH1PKD3g6xRfFQxk="; };
nativeBuildInputs = [ python3Packages.poetry-core ];
qdrant-client = fetchWheel {
pname = "qdrant_client"; version = "1.18.0"; hash = lib.fakeHash;
propagatedBuildInputs = with python3Packages; [ grpcio httpx numpy portalocker protobuf pydantic urllib3 ];
meta = with lib; { description = "Qdrant client"; homepage = "https://github.com/qdrant/qdrant-client"; license = licenses.asl20; };
};
opentelemetry-instrumentation-asgi = mkPy {
pname = "opentelemetry-instrumentation-asgi"; version = "0.60b1";
src = fetchFromGitHub { owner = "open-telemetry"; repo = "opentelemetry-python-contrib"; rev = "v0.60b1"; hash = "sha256-tCtqLT+so4hBvjPB/hFogXzuje1YdGFtq9BmVKKyqoQ="; };
sourceRoot = "source/instrumentation/opentelemetry-instrumentation-asgi";
opentelemetry-instrumentation-asgi = fetchWheel {
pname = "opentelemetry_instrumentation_asgi"; version = "0.60b1"; hash = lib.fakeHash;
propagatedBuildInputs = with python3Packages; [ asgiref ];
meta = with lib; { description = "OTel ASGI"; homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib"; license = licenses.asl20; };
};
opentelemetry-instrumentation-httpx = mkPy {
pname = "opentelemetry-instrumentation-httpx"; version = "0.60b1";
src = fetchFromGitHub { owner = "open-telemetry"; repo = "opentelemetry-python-contrib"; rev = "v0.60b1"; hash = "sha256-tCtqLT+so4hBvjPB/hFogXzuje1YdGFtq9BmVKKyqoQ="; };
sourceRoot = "source/instrumentation/opentelemetry-instrumentation-httpx";
opentelemetry-instrumentation-httpx = fetchWheel {
pname = "opentelemetry_instrumentation_httpx"; version = "0.60b1"; hash = lib.fakeHash;
propagatedBuildInputs = with python3Packages; [ httpx wrapt ];
meta = with lib; { description = "OTel HTTPX"; homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib"; license = licenses.asl20; };
};
opentelemetry-instrumentation-logging = mkPy {
pname = "opentelemetry-instrumentation-logging"; version = "0.60b1";
src = fetchFromGitHub { owner = "open-telemetry"; repo = "opentelemetry-python-contrib"; rev = "v0.60b1"; hash = "sha256-tCtqLT+so4hBvjPB/hFogXzuje1YdGFtq9BmVKKyqoQ="; };
sourceRoot = "source/instrumentation/opentelemetry-instrumentation-logging";
opentelemetry-instrumentation-logging = fetchWheel {
pname = "opentelemetry_instrumentation_logging"; version = "0.60b1"; hash = lib.fakeHash;
meta = with lib; { description = "OTel logging"; homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib"; license = licenses.asl20; };
};
langchain-text-splitters = mkPy {
pname = "langchain-text-splitters"; version = "1.1.2";
src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain"; rev = "langchain-text-splitters==1.1.2"; hash = "sha256-AiRl8N2V2UfYLZfqxM8DHZmT76rH19I1gFyOYc/mpYY="; };
sourceRoot = "source/libs/text-splitters";
nativeBuildInputs = [ python3Packages.poetry-core ];
langchain-text-splitters = fetchWheel {
pname = "langchain_text_splitters"; version = "1.1.2"; hash = lib.fakeHash;
propagatedBuildInputs = with python3Packages; [ langchain-core ];
meta = with lib; { description = "LangChain text splitters"; homepage = "https://github.com/langchain-ai/langchain"; license = licenses.mit; };
};