Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 python3,
4 fetchFromGitHub,
5}:
6
7python3.pkgs.buildPythonApplication rec {
8 pname = "robotframework-tidy";
9 version = "4.18.0";
10 pyproject = true;
11
12 src = fetchFromGitHub {
13 owner = "MarketSquare";
14 repo = "robotframework-tidy";
15 tag = version;
16 hash = "sha256-WAuB+kTEZAG1uVEXVY1CdIDGeRRHo5AT1bHs8/wBBcc=";
17 };
18
19 build-system = with python3.pkgs; [ setuptools ];
20
21 pythonRelaxDeps = [ "rich_click" ];
22
23 dependencies = with python3.pkgs; [
24 robotframework
25 click
26 colorama
27 pathspec
28 tomli
29 rich-click
30 jinja2
31 tomli-w
32 ];
33
34 nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ];
35
36 meta = {
37 description = "Code autoformatter for Robot Framework";
38 homepage = "https://robotidy.readthedocs.io";
39 changelog = "https://github.com/MarketSquare/robotframework-tidy/blob/main/docs/releasenotes/${src.tag}.rst";
40 license = lib.licenses.asl20;
41 maintainers = with lib.maintainers; [ otavio ];
42 mainProgram = "robotidy";
43 };
44}