tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.python-lsp-jsonrpc: init at 1.0.0
Fabian Affolter
4 years ago
14da5150
a143a6dd
+43
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
python-lsp-jsonrpc
default.nix
top-level
python-packages.nix
+41
pkgs/development/python-modules/python-lsp-jsonrpc/default.nix
···
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, fetchFromGitHub
4
4
+
, pytestCheckHook
5
5
+
, ujson
6
6
+
}:
7
7
+
8
8
+
buildPythonPackage rec {
9
9
+
pname = "python-lsp-jsonrpc";
10
10
+
version = "1.0.0";
11
11
+
12
12
+
src = fetchFromGitHub {
13
13
+
owner = "python-lsp";
14
14
+
repo = pname;
15
15
+
rev = "v${version}";
16
16
+
sha256 = "0h4bs8s4axcm0p02v59amz9sq3nr4zhzdgwq7iaw6awl27v1hd0i";
17
17
+
};
18
18
+
19
19
+
propagatedBuildInputs = [
20
20
+
ujson
21
21
+
];
22
22
+
23
23
+
checkInputs = [
24
24
+
pytestCheckHook
25
25
+
];
26
26
+
27
27
+
postPatch = ''
28
28
+
substituteInPlace setup.cfg \
29
29
+
--replace "--cov-report html --cov-report term --junitxml=pytest.xml" "" \
30
30
+
--replace "--cov pylsp_jsonrpc --cov test" ""
31
31
+
'';
32
32
+
33
33
+
pythonImportsCheck = [ "pylsp_jsonrpc" ];
34
34
+
35
35
+
meta = with lib; {
36
36
+
description = "Python server implementation of the JSON RPC 2.0 protocol.";
37
37
+
homepage = "https://github.com/python-lsp/python-lsp-jsonrpc";
38
38
+
license = licenses.mit;
39
39
+
maintainers = with maintainers; [ fab ];
40
40
+
};
41
41
+
}
+2
pkgs/top-level/python-packages.nix
···
6998
6998
6999
6999
python-louvain = callPackage ../development/python-modules/python-louvain { };
7000
7000
7001
7001
+
python-lsp-jsonrpc = callPackage ../development/python-modules/python-lsp-jsonrpc { };
7002
7002
+
7001
7003
python-ly = callPackage ../development/python-modules/python-ly { };
7002
7004
7003
7005
python-lz4 = callPackage ../development/python-modules/python-lz4 { };