nixpkgs/pkgs/tools/misc/pls/default.nix

39 lines
816 B
Nix
Raw Normal View History

2022-05-05 12:48:32 +02:00
{ lib, python3, fetchFromGitHub }:
python3.pkgs.buildPythonApplication rec {
pname = "pls";
2022-05-23 21:05:33 +02:00
version = "5.0.0";
2022-05-05 12:48:32 +02:00
format = "pyproject";
src = fetchFromGitHub {
owner = "dhruvkb";
repo = "pls";
rev = version;
2022-05-23 21:05:33 +02:00
sha256 = "sha256-9AY/xZhjowBRHRDevov677Ov4uJWxbVdB789KxA1dXQ=";
2022-05-05 12:48:32 +02:00
};
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 ];
};
}