config/pkgs/remote-exec.nix

49 lines
935 B
Nix
Raw Normal View History

2023-03-04 16:57:11 +01:00
{ lib
, fetchFromGitHub
, buildPythonApplication
# inputs
, click
, toml
, pydantic
, watchdog
# testing
, 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 ];
};
}