depot/third_party/nixpkgs/pkgs/development/python-modules/pygls/default.nix
Default email 4fc29cb41f Project import generated by Copybara.
GitOrigin-RevId: 135073a87b7e2c631739f4ffa016e1859b1a425e
2020-05-29 08:06:01 +02:00

31 lines
781 B
Nix

{ stdenv, buildPythonPackage, isPy3k, fetchFromGitHub
, mock, pytest, pytest-asyncio
}:
buildPythonPackage rec {
pname = "pygls";
version = "0.8.1";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "openlawlibrary";
repo = pname;
rev = "v${version}";
sha256 = "1853rfdks5n8nw6ig96j7his5kqd75hrvzvd0win4niycaqsag6m";
};
postPatch = ''
substituteInPlace setup.py \
--replace "pytest==4.5.0" "pytest"
'';
checkInputs = [ mock pytest pytest-asyncio ];
checkPhase = "pytest";
meta = with stdenv.lib; {
homepage = "https://github.com/openlawlibrary/pygls";
description = "Pythonic generic implementation of the Language Server Protocol";
license = licenses.asl20;
maintainers = with maintainers; [ metadark ];
};
}