43 lines
978 B
Nix
43 lines
978 B
Nix
|
{
|
||
|
lib,
|
||
|
python3,
|
||
|
fetchFromGitHub,
|
||
|
}:
|
||
|
|
||
|
python3.pkgs.buildPythonApplication rec {
|
||
|
pname = "robotframework-tidy";
|
||
|
version = "4.14.0";
|
||
|
pyproject = true;
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "MarketSquare";
|
||
|
repo = "robotframework-tidy";
|
||
|
rev = "refs/tags/${version}";
|
||
|
hash = "sha256-FsZraD0Kn9e6J0XzJsm4m0dIXHi86AWGad13ggqm3h4=";
|
||
|
};
|
||
|
|
||
|
build-system = with python3.pkgs; [ setuptools ];
|
||
|
|
||
|
dependencies = with python3.pkgs; [
|
||
|
robotframework
|
||
|
click
|
||
|
colorama
|
||
|
pathspec
|
||
|
tomli
|
||
|
rich-click
|
||
|
jinja2
|
||
|
tomli-w
|
||
|
];
|
||
|
|
||
|
nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Code autoformatter for Robot Framework";
|
||
|
homepage = "https://robotidy.readthedocs.io";
|
||
|
changelog = "https://github.com/MarketSquare/robotframework-tidy/blob/main/docs/releasenotes/${version}.rst";
|
||
|
license = licenses.asl20;
|
||
|
maintainers = with maintainers; [ otavio ];
|
||
|
mainProgram = "robotidy";
|
||
|
};
|
||
|
}
|