Skip to content

Commit

Permalink
Add robotframework-retryfailed
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander V. Nikolaev <[email protected]>
  • Loading branch information
avnik authored and azbeleva committed Sep 21, 2023
1 parent bb42956 commit 22431a4
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
ghaf-robot = pkgs.callPackage ./pkgs/ghaf-robot {
PyP100 = self.packages.${system}.PyP100;
robotframework-advancedlogging = self.packages.${system}.robotframework-advancedlogging;
robotframework-retryfailed = self.packages.${system}.robotframework-retryfailed;
robotframework-seriallibrary = self.packages.${system}.robotframework-seriallibrary;
};
robotframework-retryfailed = pkgs.python3Packages.callPackage ./pkgs/robotframework-retryfailed {};
robotframework-seriallibrary = pkgs.python3Packages.callPackage ./pkgs/robotframework-seriallibrary {};
robotframework-advancedlogging = pkgs.python3Packages.callPackage ./pkgs/robotframework-advancedlogging {};
pkcs7 = pkgs.python3Packages.callPackage ./pkgs/pkcs7 {}; # Requirement of PyP100
Expand All @@ -38,6 +40,7 @@
(python3.withPackages (ps:
with ps; [
robotframework
self.packages.${system}.robotframework-retryfailed
self.packages.${system}.robotframework-seriallibrary
self.packages.${system}.robotframework-advancedlogging
self.packages.${system}.PyP100
Expand Down
2 changes: 2 additions & 0 deletions pkgs/ghaf-robot/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
PyP100,
python3,
robotframework-advancedlogging,
robotframework-retryfailed,
robotframework-seriallibrary,
stdenv,
writeShellApplication,
Expand All @@ -18,6 +19,7 @@ writeShellApplication {

# These are taken from this flake
robotframework-advancedlogging
robotframework-retryfailed
robotframework-seriallibrary
PyP100
]))
Expand Down
31 changes: 31 additions & 0 deletions pkgs/robotframework-retryfailed/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
robotframework
}:
buildPythonPackage rec {
version = "0.2.0";
pname = "robotframework-retryfailed";
format = "setuptools";

src = fetchFromGitHub {
owner = "MarketSquare";
repo = "robotframework-retryfailed";
rev = "115eca8ad03a1e0e08a71251cc69bc41bd70f0f5";
sha256 = "sha256-Ls8ZGbM3Ucm5+vqrFOmz9NiEisxyRSYw5P+oqrXo/Ck=";
};

# unit tests are impure
# doCheck = false;

propagatedBuildInputs = [
robotframework
];

meta = with lib; {
description = "A listener to automatically retry tests or tasks based on flags.";
homepage = "https://github.com/MarketSquare/robotframework-retryfailed";
license = licenses.asl20;
};
}

0 comments on commit 22431a4

Please sign in to comment.