2022-05-05 12:48:32 +02:00
|
|
|
{ lib, python3, fetchFromGitHub }:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "pls";
|
2022-08-11 21:57:42 +02:00
|
|
|
version = "5.4.0";
|
2022-05-05 12:48:32 +02:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dhruvkb";
|
|
|
|
repo = "pls";
|
|
|
|
rev = version;
|
2022-08-11 21:57:42 +02:00
|
|
|
sha256 = "sha256-h93Kz+ETdHfnzypa8JjMvbzA1o/KS1UuTG8/vhEt7Vo=";
|
2022-05-05 12:48:32 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ python3.pkgs.poetry-core ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
pyyaml
|
2022-06-03 15:01:43 +02:00
|
|
|
requests
|
2022-05-05 12:48:32 +02:00
|
|
|
rich
|
|
|
|
];
|
|
|
|
|
2023-01-21 13:00:00 +01:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2022-05-05 12:48:32 +02:00
|
|
|
freezegun
|
|
|
|
jsonschema
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-09-03 23:33:32 +02:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace 'rich = "^12.5.1"' 'rich = "*"' \
|
|
|
|
'';
|
|
|
|
|
2022-05-05 12:48:32 +02:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|