2022-05-18 14:49:53 +00:00
|
|
|
{ lib, python3, fetchFromGitHub }:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "pls";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "5.4.0";
|
2022-05-18 14:49:53 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dhruvkb";
|
|
|
|
repo = "pls";
|
|
|
|
rev = version;
|
2022-08-21 13:32:41 +00:00
|
|
|
sha256 = "sha256-h93Kz+ETdHfnzypa8JjMvbzA1o/KS1UuTG8/vhEt7Vo=";
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ python3.pkgs.poetry-core ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
pyyaml
|
2022-06-16 17:23:12 +00:00
|
|
|
requests
|
2022-05-18 14:49:53 +00:00
|
|
|
rich
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = with python3.pkgs; [
|
|
|
|
freezegun
|
|
|
|
jsonschema
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace 'rich = "^12.5.1"' 'rich = "*"' \
|
|
|
|
'';
|
|
|
|
|
2022-05-18 14:49:53 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|