Something went wrong. Try again.
lol
Something went wrong. Try again.
1.5 kB · 72 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273{ lib, attrs, buildPythonPackage, cattrs, fetchFromGitHub, flit-core, importlib-resources, jsonschema, pyhamcrest, pytestCheckHook,}:
buildPythonPackage rec { pname = "lsprotocol"; version = "2023.0.1"; # nixpkgs-update: no auto update pyproject = true;
src = fetchFromGitHub { owner = "microsoft"; repo = "lsprotocol"; tag = version; hash = "sha256-PHjLKazMaT6W4Lve1xNxm6hEwqE3Lr2m5L7Q03fqb68="; };
sourceRoot = "${src.name}/packages/python";
build-system = [ flit-core ];
dependencies = [ attrs cattrs ];
nativeCheckInputs = [ pytestCheckHook ];
checkInputs = [ importlib-resources jsonschema pyhamcrest ];
disabledTests = [ # cattrs.errors.StructureHandlerNotFoundError: Unsupported type: # typing.Union[str, lsprotocol.types.NotebookDocumentFilter_Type1, # lsprotocol.types.NotebookDocumentFilter_Type2, # lsprotocol.types.NotebookDocumentFilter_Type3, NoneType]. Register # a structure hook for it. "test_notebook_sync_options" ];
preCheck = '' cd ../../ '';
pythonImportsCheck = [ "lsprotocol" ];
passthru.skipBulkUpdate = true;
meta = { description = "Python implementation of the Language Server Protocol"; homepage = "https://github.com/microsoft/lsprotocol"; changelog = "https://github.com/microsoft/lsprotocol/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ doronbehar fab ]; };}