feat: add nextcloud-mcp-server with 20 inlined Python deps #1
@@ -6,30 +6,23 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
mkPy = { pname, version, src, propagatedBuildInputs ? [ ], meta ? { }, ... }@args:
|
# Helper: buildPythonPackage for a wheel fetched from PyPI
|
||||||
python3Packages.buildPythonPackage ({
|
# CRITICAL: pname MUST use underscores, not hyphens, for PyPI wheel filenames
|
||||||
inherit pname version src;
|
|
||||||
pyproject = true;
|
|
||||||
build-system = [ python3Packages.hatchling ];
|
|
||||||
inherit propagatedBuildInputs;
|
|
||||||
doCheck = false;
|
|
||||||
inherit meta;
|
|
||||||
} // builtins.removeAttrs args [ "pname" "version" "src" "propagatedBuildInputs" "meta" "pyproject" "build-system" "doCheck" ]);
|
|
||||||
|
|
||||||
fetchWheel = { pname, version, hash, propagatedBuildInputs ? [ ], meta ? { } }:
|
fetchWheel = { pname, version, hash, propagatedBuildInputs ? [ ], meta ? { } }:
|
||||||
python3Packages.buildPythonPackage {
|
python3Packages.buildPythonPackage {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
format = "wheel";
|
format = "wheel";
|
||||||
src = fetchurl {
|
src = fetchPypi {
|
||||||
url = "https://files.pythonhosted.org/packages/placeholder/${pname}-${version}-py3-none-any.whl";
|
inherit pname version hash;
|
||||||
inherit hash;
|
format = "wheel";
|
||||||
|
dist = "py3";
|
||||||
|
python = "py3";
|
||||||
};
|
};
|
||||||
inherit propagatedBuildInputs;
|
inherit propagatedBuildInputs;
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
inherit meta;
|
inherit meta;
|
||||||
};
|
};
|
||||||
|
|
||||||
# ── 20 dependency packages ──
|
|
||||||
pythonvcard4 = fetchWheel {
|
pythonvcard4 = fetchWheel {
|
||||||
pname = "pythonvcard4"; version = "0.2.0"; hash = lib.fakeHash;
|
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; };
|
meta = with lib; { description = "vCard parsing"; homepage = "https://github.com/GNOME/python-vcard4"; license = licenses.gpl3Plus; };
|
||||||
|
|||||||
Reference in New Issue
Block a user