Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Robotframework-SSHLibrary hacking #60

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,30 @@
flake-utils.lib.eachSystem systems (system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
packages = rec {
packages = {
ghaf-robot = pkgs.callPackage ./pkgs/ghaf-robot {
PyP100 = self.packages.${system}.PyP100;
plugp100 = self.packages.${system}.plugp100;
robotframework-advancedlogging = self.packages.${system}.robotframework-advancedlogging;
robotframework-retryfailed = self.packages.${system}.robotframework-retryfailed;
robotframework-seriallibrary = self.packages.${system}.robotframework-seriallibrary;
robotframework-sshlibrary = self.packages.${system}.robotframework-sshlibrary;
};
robotframework-retryfailed = pkgs.python3Packages.callPackage ./pkgs/robotframework-retryfailed {};
robotframework-seriallibrary = pkgs.python3Packages.callPackage ./pkgs/robotframework-seriallibrary {};
robotframework-advancedlogging = pkgs.python3Packages.callPackage ./pkgs/robotframework-advancedlogging {};
robotframework-sshlibrary = pkgs.python3Packages.robotframework-sshlibrary.overrideAttrs {
src = pkgs.fetchFromGitHub {
owner = "mikatammi";
repo = "SSHLibrary";
rev = "345b3f936ebb15212eb2d539a2991ced92d3c5e6";
hash = "sha256-I14gQCDO6nxg0KybLkWzAUnyWI89MpOfbcxNb4GJ1VI=";
};
};
pkcs7 = pkgs.python3Packages.callPackage ./pkgs/pkcs7 {}; # Requirement of PyP100
PyP100 = pkgs.python3Packages.callPackage ./pkgs/PyP100 {inherit pkcs7;};
PyP100 = pkgs.python3Packages.callPackage ./pkgs/PyP100 {pkcs7 = self.packages.${system}.pkcs7;};
plugp100 = pkgs.python3Packages.callPackage ./pkgs/plugp100 {};
default = ghaf-robot;
default = self.packages.${system}.ghaf-robot;
};

# Development shell
Expand All @@ -47,7 +56,8 @@
self.packages.${system}.robotframework-advancedlogging
self.packages.${system}.PyP100
self.packages.${system}.plugp100
robotframework-sshlibrary
# robotframework-sshlibrary
self.packages.${system}.robotframework-sshlibrary
pyserial
python-kasa
]))
Expand Down
4 changes: 3 additions & 1 deletion pkgs/ghaf-robot/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
robotframework-advancedlogging,
robotframework-retryfailed,
robotframework-seriallibrary,
robotframework-sshlibrary,
stdenv,
writeShellApplication,
}:
Expand All @@ -14,7 +15,8 @@ writeShellApplication {
(python3.withPackages (ps: [
# These are taken from nixpkgs
ps.robotframework
ps.robotframework-sshlibrary
# ps.robotframework-sshlibrary
robotframework-sshlibrary
ps.pyserial
ps.python-kasa

Expand Down