Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 781 B view raw
1{ stdenv, buildPythonPackage, isPy3k, fetchFromGitHub 2, mock, pytest, pytest-asyncio 3}: 4 5buildPythonPackage rec { 6 pname = "pygls"; 7 version = "0.9.0"; 8 disabled = !isPy3k; 9 10 src = fetchFromGitHub { 11 owner = "openlawlibrary"; 12 repo = pname; 13 rev = "v${version}"; 14 sha256 = "1wfp4hjin1mb6nkzhpfh5v8q8rwvn9zh0mwwj4dlxkqx5lp272hl"; 15 }; 16 17 postPatch = '' 18 substituteInPlace setup.py \ 19 --replace "pytest==4.5.0" "pytest" 20 ''; 21 22 checkInputs = [ mock pytest pytest-asyncio ]; 23 checkPhase = "pytest"; 24 25 meta = with stdenv.lib; { 26 homepage = "https://github.com/openlawlibrary/pygls"; 27 description = "Pythonic generic implementation of the Language Server Protocol"; 28 license = licenses.asl20; 29 maintainers = with maintainers; [ metadark ]; 30 }; 31}