blob: 5e28423202c1c17061b7f80c8aa64d2b36155223 (
about) (
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
51
52
53
54
55
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
mock,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
setuptools,
ujson,
versioneer,
}:
buildPythonPackage rec {
pname = "python-jsonrpc-server";
version = "0.4.0";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "palantir";
repo = "python-jsonrpc-server";
tag = version;
hash = "sha256-hlMw+eL1g+oe5EG7mwK8jSX0UcOQo7La+BZ3tjEojl0=";
};
postPatch = ''
# Remove vendorized versioneer.py
rm versioneer.py
'';
build-system = [
setuptools
versioneer
];
dependencies = [ ujson ];
nativeCheckInputs = [
mock
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "pyls_jsonrpc" ];
meta = with lib; {
description = "Module for erver implementation of the JSON RPC 2.0 protocol";
homepage = "https://github.com/palantir/python-jsonrpc-server";
changelog = "https://github.com/palantir/python-jsonrpc-server/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ mic92 ];
};
}
|