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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
948 B
Nix
Raw Normal View History

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