diff options
author | Katharina Fey <kookie@spacekookie.de> | 2020-06-04 20:34:50 +0200 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2020-06-04 20:34:50 +0200 |
commit | 8e9d8d8b70f2a5515ffa4b2dad18cf5783ab1e4e (patch) | |
tree | c2f70049be19f757f1ae6b2b80c3bfe70a47612c /nixpkgs/pkgs/development/python-modules/pygls | |
parent | 240cb27216dbb4203e2d470d78888b5cf82809ac (diff) | |
parent | 467ce5a9f45aaf96110b41eb863a56866e1c2c3c (diff) |
Merge commit '467ce5a9f45aaf96110b41eb863a56866e1c2c3c'
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pygls')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/pygls/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pygls/default.nix b/nixpkgs/pkgs/development/python-modules/pygls/default.nix new file mode 100644 index 00000000000..962803402e6 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/pygls/default.nix @@ -0,0 +1,31 @@ +{ 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 ]; + }; +} |