42 lines
963 B
Nix
42 lines
963 B
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "robotframework-tidy";
|
|
version = "4.11.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MarketSquare";
|
|
repo = "robotframework-tidy";
|
|
rev = version;
|
|
hash = "sha256-pWW7Ex184WgnPfqHg5qQjfE+9UPvCmE5pwkY8jrp9bI=";
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|