My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/python-lsp-jsonrpc/default.nix

41 lines
896 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, ujson
}:
buildPythonPackage rec {
pname = "python-lsp-jsonrpc";
version = "1.0.0";
src = fetchFromGitHub {
owner = "python-lsp";
repo = pname;
rev = "v${version}";
sha256 = "0h4bs8s4axcm0p02v59amz9sq3nr4zhzdgwq7iaw6awl27v1hd0i";
};
propagatedBuildInputs = [
ujson
];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov-report html --cov-report term --junitxml=pytest.xml" "" \
--replace "--cov pylsp_jsonrpc --cov test" ""
'';
pythonImportsCheck = [ "pylsp_jsonrpc" ];
meta = with lib; {
description = "Python server implementation of the JSON RPC 2.0 protocol.";
homepage = "https://github.com/python-lsp/python-lsp-jsonrpc";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}