2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
bash,
|
|
|
|
openssh,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
stdenv,
|
2022-11-04 12:27:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "deploykit";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.1.1";
|
2022-12-17 10:02:37 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2022-11-04 12:27:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "numtide";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-7PiXq1bQJ1jswLHNqCDSYZabgfp8HRuRt5YPGzd5Ej0=";
|
2022-11-04 12:27:35 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [ setuptools ];
|
2022-11-04 12:27:35 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-11-04 12:27:35 +00:00
|
|
|
bash
|
|
|
|
openssh
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ "test_ssh" ];
|
2022-11-04 12:27:35 +00:00
|
|
|
|
|
|
|
# don't swallow stdout/stderr
|
|
|
|
pytestFlagsArray = [ "-s" ];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "deploykit" ];
|
2022-12-17 10:02:37 +00:00
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Execute commands remote via ssh and locally in parallel with python";
|
|
|
|
homepage = "https://github.com/numtide/deploykit";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/numtide/deploykit/releases/tag/${version}";
|
2022-11-04 12:27:35 +00:00
|
|
|
license = licenses.mit;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
mic92
|
|
|
|
zowoq
|
|
|
|
];
|
2022-11-04 12:27:35 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|