mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
40 lines
829 B
Nix
40 lines
829 B
Nix
{ lib, python3, fetchFromGitHub }:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "pls";
|
|
version = "5.2.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dhruvkb";
|
|
repo = "pls";
|
|
rev = version;
|
|
sha256 = "sha256-nmADeOVS5qdWsun36eKmeT4kYml0sTXYNa+YUiyNGQY=";
|
|
};
|
|
|
|
nativeBuildInputs = [ python3.pkgs.poetry-core ];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
pyyaml
|
|
requests
|
|
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 ];
|
|
};
|
|
}
|