Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 77 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778{ lib, attrs, buildPythonPackage, cattrs, fetchFromGitHub, flit-core, importlib-resources, jsonschema, nox, pyhamcrest, pytest, pythonOlder,}:
buildPythonPackage rec { pname = "lsprotocol"; version = "2023.0.1"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "microsoft"; repo = "lsprotocol"; tag = version; hash = "sha256-PHjLKazMaT6W4Lve1xNxm6hEwqE3Lr2m5L7Q03fqb68="; };
nativeBuildInputs = [ flit-core nox ];
propagatedBuildInputs = [ attrs cattrs ];
nativeCheckInputs = [ pytest ];
checkInputs = [ importlib-resources jsonschema pyhamcrest ];
preBuild = '' cd packages/python '';
preCheck = '' cd ../../ '';
checkPhase = '' runHook preCheck
sed -i "/^ _install_requirements/d" noxfile.py nox --session tests
runHook postCheck '';
pythonImportsCheck = [ "lsprotocol" ];
meta = with lib; { description = "Python implementation of the Language Server Protocol"; homepage = "https://github.com/microsoft/lsprotocol"; changelog = "https://github.com/microsoft/lsprotocol/releases/tag/${version}"; license = licenses.mit; maintainers = with maintainers; [ doronbehar fab ]; };}