diff options
author | Peder Bergebakken Sundt <pbsds@hotmail.com> | 2023-03-18 23:15:22 +0100 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-06-23 22:11:25 -0300 |
commit | 7cd25dd8438d83a5c8aa3fb009ba76228d588ade (patch) | |
tree | c9cbb3010b1bfbba68543ffa2479b53c1be44d60 /pkgs/tools/misc/remote-exec/default.nix | |
parent | b0af7d71618818f9a6f2b9578495b2cc0285b845 (diff) |
remote-exec: init at 1.13.2
Diffstat (limited to 'pkgs/tools/misc/remote-exec/default.nix')
-rw-r--r-- | pkgs/tools/misc/remote-exec/default.nix | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/pkgs/tools/misc/remote-exec/default.nix b/pkgs/tools/misc/remote-exec/default.nix new file mode 100644 index 0000000000000..afedab81cbd6e --- /dev/null +++ b/pkgs/tools/misc/remote-exec/default.nix @@ -0,0 +1,64 @@ +{ lib +, stdenv +, fetchFromGitHub +, buildPythonApplication +, click +, pydantic +, toml +, watchdog +, pytestCheckHook +, rsync +}: + +buildPythonApplication rec { + pname = "remote-exec"; + version = "1.13.2"; + + src = fetchFromGitHub { + owner = "remote-cli"; + repo = "remote"; + rev = "refs/tags/v${version}"; + hash = "sha256-xaxkN6XukV9HiLYehwVTBZB8bUyjgpfg+pPfAGrOkgo="; + }; + + # remove legacy endpoints, we use --multi now + postPatch = '' + substituteInPlace setup.py \ + --replace '"mremote' '#"mremote' + ''; + + propagatedBuildInputs = [ + click + pydantic + toml + watchdog + ]; + + # disable pytest --cov + preCheck = '' + rm setup.cfg + ''; + + doCheck = true; + + nativeCheckInputs = [ + rsync + ]; + + checkInputs = [ + pytestCheckHook + ]; + + disabledTestPaths = lib.optionals stdenv.isDarwin [ + # `watchdog` dependency does not correctly detect fsevents on darwin. + # this only affects `remote --stream-changes` + "test/test_file_changes.py" + ]; + + meta = with lib; { + description = "Work with remote hosts seamlessly via rsync and ssh"; + homepage = "https://github.com/remote-cli/remote"; + license = licenses.bsd2; + maintainers = with maintainers; [ pbsds ]; + }; +} |