blob: f1e6394629f485e74bf84121c81adf4ab02a3f63 (
plain)
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
|
{
lib,
fetchFromGitHub,
buildPythonPackage,
django,
djangorestframework,
inflection,
mcp,
uritemplate,
poetry-core,
}:
buildPythonPackage rec {
pname = "django-mcp-server";
version = "0.5.6";
pyproject = true;
src = fetchFromGitHub {
owner = "omarbenhamid";
repo = "django-mcp-server";
tag = "v${version}";
hash = "sha256-HR4AzeDT/oWJe/exsV5AqwSebJPGT/vlzuk3qTgVb/M=";
};
build-system = [ poetry-core ];
dependencies = [
django
djangorestframework
inflection
mcp
uritemplate
];
postFixup = ''
export PYTHONPATH="$PWD/examples:$PYTHONPATH"
export DJANGO_SETTINGS_MODULE=mcpexample.mcpexample.settings
'';
pythonImportsCheck = [ "mcp_server" ];
doCheck = false; # Needs to run both test server and client simultaneously
meta = {
description = "Django MCP Server implementation";
homepage = "https://github.com/omarbenhamid/django-mcp-server";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ mrmebelman ];
};
}
|