My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/tools/misc/pls/default.nix

38 lines
816 B

{ 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 ];
};
}