15 buildPythonPackage rec {
20 disabled = pythonOlder "3.7";
22 src = fetchFromGitHub {
23 owner = "openlawlibrary";
26 hash = "sha256-AvrGoQ0Be1xKZhFn9XXYJpt5w+ITbDbj6NFZpaDPKao=";
30 # https://github.com/openlawlibrary/pygls/pull/432
38 propagatedBuildInputs = [
43 optional-dependencies = {
52 # Fixes hanging tests on Darwin
53 __darwinAllowLocalNetworking = true;
55 preCheck = lib.optionalString stdenv.hostPlatform.isDarwin ''
56 # Darwin issue: OSError: [Errno 24] Too many open files
60 pythonImportsCheck = [ "pygls" ];
63 description = "Pythonic generic implementation of the Language Server Protocol";
64 homepage = "https://github.com/openlawlibrary/pygls";
65 changelog = "https://github.com/openlawlibrary/pygls/blob/${version}/CHANGELOG.md";
66 license = licenses.asl20;
67 maintainers = with maintainers; [ kira-bruneau ];