about summary refs log tree commit diff
path: root/pkgs/tools/misc/pls
diff options
context:
space:
mode:
authorArjan Schrijver <github@anymore.nl>2022-05-05 12:48:32 +0200
committerArjan Schrijver <github@anymore.nl>2022-05-11 20:27:05 +0200
commitfd33656e3d31f83bb40cb7e2ad4238a5dda74d55 (patch)
tree458ec3708c71b53a61054f2d331913936b2dc6be /pkgs/tools/misc/pls
parent964a472f414339b48417563cc81fcea4394d07fd (diff)
pls: init at 4.0.3
Diffstat (limited to 'pkgs/tools/misc/pls')
-rw-r--r--pkgs/tools/misc/pls/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/tools/misc/pls/default.nix b/pkgs/tools/misc/pls/default.nix
new file mode 100644
index 0000000000000..c9cb7e98bc02e
--- /dev/null
+++ b/pkgs/tools/misc/pls/default.nix
@@ -0,0 +1,38 @@
+{ lib, python3, fetchFromGitHub }:
+
+python3.pkgs.buildPythonApplication rec {
+  pname = "pls";
+  version = "4.0.3";
+  format = "pyproject";
+
+  src = fetchFromGitHub {
+    owner = "dhruvkb";
+    repo = "pls";
+    rev = version;
+    sha256 = "sha256-cVTIWSOx3FwF3QPak3eIIIgQ1O9JF5e5ILpcHQ4qI6k=";
+  };
+
+  nativeBuildInputs = [ python3.pkgs.poetry-core ];
+
+  propagatedBuildInputs = with python3.pkgs; [
+    pyyaml
+    rich
+  ];
+
+  checkInputs = with python3.pkgs; [
+    freezegun
+    jsonschema
+    pytestCheckHook
+  ];
+
+  pytestFlagsArray = [ "tests/" "--ignore=tests/e2e" ];
+
+  pythonImportsCheck = [ "pls" ];
+
+  meta = with lib; {
+    homepage = "https://dhruvkb.github.io/pls/";
+    description = "Prettier and powerful ls";
+    license = licenses.gpl3Plus;
+    maintainers = with maintainers; [ arjan-s ];
+  };
+}