mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
55 lines
1.0 KiB
Nix
55 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, setuptools-scm
|
|
, pydantic
|
|
, toml
|
|
, typeguard
|
|
, mock
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pygls";
|
|
version = "0.12.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "openlawlibrary";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-L2KTNiI+I+r2fF88B1NSunowokrDzGCw3PXbxekg/oE=";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
propagatedBuildInputs = [
|
|
pydantic
|
|
toml
|
|
typeguard
|
|
];
|
|
|
|
checkInputs = [
|
|
mock
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
# Fixes hanging tests on Darwin
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
pythonImportsCheck = [ "pygls" ];
|
|
|
|
meta = with lib; {
|
|
description = "Pythonic generic implementation of the Language Server Protocol";
|
|
homepage = "https://github.com/openlawlibrary/pygls";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ kira-bruneau ];
|
|
};
|
|
}
|