config/pkgs/remote-exec.nix

51 lines
936 B
Nix
Raw Normal View History

2023-03-04 16:57:11 +01:00
{ lib
, fetchFromGitHub
, buildPythonApplication
2023-03-19 04:23:38 +01:00
# runtime
2023-03-04 16:57:11 +01:00
, click
, toml
, pydantic
, watchdog
2023-03-19 04:23:38 +01:00
# check
2023-03-04 16:57:11 +01:00
, pytestCheckHook
, rsync
}:
buildPythonApplication rec {
pname = "remote-exec";
version = "1.11.0";
src = fetchFromGitHub {
owner = "remote-cli";
repo = "remote";
rev = "953b22b43adaadf8bbcd845f7a11e3cffae8ac6a";
hash = "sha256-yPiLTwToU1L9Hp/Ny7nDWUghCaqJzkh6GLVDd0N8x6g=";
};
propagatedBuildInputs = [
click
toml
pydantic
watchdog
];
# remove --cov from pytest
preCheck = ''
rm setup.cfg
'';
doCheck = true;
checkInputs = [
pytestCheckHook
rsync
];
meta = with lib; {
homepage = "https://github.com/remote-cli/remote";
description = "Work with remote hosts seamlessly via rsync and ssh. Code locally, build and execute remotely";
platform = platforms.all;
license = licenses.bsd2;
maintainers = with maintainers; [ pbsds ];
};
}