Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 76 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677{ lib, attrs, buildPythonPackage, cattrs, fetchFromGitHub, flit-core, importlib-resources, jsonschema, nox, pyhamcrest, pytest, pythonOlder}:
buildPythonPackage rec { pname = "lsprotocol"; version = "2023.0.0"; format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "microsoft"; repo = pname; rev = "refs/tags/${version}"; hash = "sha256-K5jocKVxMNoUYYUi9YO2+N7hHWj0MFLprqGOzsg1QRs="; };
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"; license = licenses.mit; maintainers = with maintainers; [ doronbehar fab ]; };}