Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 69 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970{ lib, stdenv, buildPythonPackage, fetchFromGitHub, lsprotocol, poetry-core, pytest-asyncio, pytestCheckHook, pythonOlder, typeguard, websockets,}:
buildPythonPackage rec { pname = "pygls"; version = "1.3.1"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "openlawlibrary"; repo = "pygls"; rev = "refs/tags/v${version}"; hash = "sha256-AvrGoQ0Be1xKZhFn9XXYJpt5w+ITbDbj6NFZpaDPKao="; };
pythonRelaxDeps = [ # https://github.com/openlawlibrary/pygls/pull/432 "lsprotocol" ];
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ lsprotocol typeguard ];
passthru.optional-dependencies = { ws = [ websockets ]; };
nativeCheckInputs = [ pytest-asyncio pytestCheckHook ];
# Fixes hanging tests on Darwin __darwinAllowLocalNetworking = true;
preCheck = lib.optionalString stdenv.isDarwin '' # Darwin issue: OSError: [Errno 24] Too many open files ulimit -n 1024 '';
pythonImportsCheck = [ "pygls" ];
meta = with lib; { description = "Pythonic generic implementation of the Language Server Protocol"; homepage = "https://github.com/openlawlibrary/pygls"; changelog = "https://github.com/openlawlibrary/pygls/blob/${version}/CHANGELOG.md"; license = licenses.asl20; maintainers = with maintainers; [ kira-bruneau ]; };}