Files
nixpkgs/pkgs/development/python-modules/lsprotocol/2023.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

71 lines
1.4 KiB
Nix

{
lib,
attrs,
buildPythonPackage,
cattrs,
fetchFromGitHub,
flit-core,
importlib-resources,
jsonschema,
pyhamcrest,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "lsprotocol";
version = "2023.0.1";
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" ];
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
];
};
}