forked from pathintegral-institute/mcpm.sh
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
73 lines (63 loc) · 1.32 KB
/
Copy pathdefault.nix
File metadata and controls
73 lines (63 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
lib,
python3,
}:
let
# Use Python 3.12
python = python3; # pkgs.python312;
# Override Python to include our custom packages
pythonWithPackages = python.override {
packageOverrides = self: super: {
# Add our custom packages
};
};
in
pythonWithPackages.pkgs.buildPythonApplication rec {
pname = "mcpm";
version = "1.13.1"; # From src/mcpm/version.py
src = ./.; # Use the local directory as the source
format = "pyproject";
nativeBuildInputs = with pythonWithPackages.pkgs; [
hatchling
setuptools
wheel
pip
];
propagatedBuildInputs = with pythonWithPackages.pkgs; [
# Core dependencies from pyproject.toml
click
rich
requests
pydantic
duckdb
psutil
prompt-toolkit
deprecated
# dependencies only available for Python>=3.12 on nixpkgs
mcp
ruamel-yaml
watchfiles
# Additional dependencies that might be needed
typer
httpx
anyio
fastapi
uvicorn
websockets
jinja2
pyyaml
toml
python-dotenv
packaging
colorama
];
# Disable tests for now
#doCheck = false;
meta = with lib; {
description = "MCPM - Model Context Protocol Manager";
homepage = "https://mcpm.sh";
license = licenses.mit;
maintainers = with maintainers; [ luochen1990 ];
mainProgram = "mcpm";
};
}