1{ lib
2, buildPythonPackage
3, isPy3k
4, fetchFromGitHub
5, setuptools-scm
6, pydantic
7, typeguard
8, mock
9, pytest-asyncio
10, pytestCheckHook
11}:
12
13buildPythonPackage rec {
14 pname = "pygls";
15 version = "0.11.3";
16 disabled = !isPy3k;
17
18 src = fetchFromGitHub {
19 owner = "openlawlibrary";
20 repo = pname;
21 rev = "v${version}";
22 sha256 = "sha256-/nmDaA67XzrrmfwlBm5syTS4hn25m30Zb3gvOdL+bR8=";
23 };
24
25 SETUPTOOLS_SCM_PRETEND_VERSION = version;
26 nativeBuildInputs = [ setuptools-scm ];
27
28 propagatedBuildInputs = [
29 pydantic
30 typeguard
31 ];
32
33 checkInputs = [
34 mock
35 pytest-asyncio
36 pytestCheckHook
37 ];
38
39 # Fixes hanging tests on Darwin
40 __darwinAllowLocalNetworking = true;
41
42 pythonImportsCheck = [ "pygls" ];
43
44 meta = with lib; {
45 description = "Pythonic generic implementation of the Language Server Protocol";
46 homepage = "https://github.com/openlawlibrary/pygls";
47 license = licenses.asl20;
48 maintainers = with maintainers; [ kira-bruneau ];
49 };
50}