1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, setuptools
5, bash
6, openssh
7, pytestCheckHook
8, stdenv
9}:
10
11buildPythonPackage rec {
12 pname = "deploykit";
13 version = "1.0.1";
14
15 src = fetchFromGitHub {
16 owner = "numtide";
17 repo = pname;
18 rev = version;
19 hash = "sha256-eKyqsGgnJmF2wUYa7HjC1Jwsh03qVTJEP1MtL7JL4Ts=";
20 };
21
22 buildInputs = [
23 setuptools
24 ];
25
26 checkInputs = [
27 bash
28 openssh
29 pytestCheckHook
30 ];
31
32 disabledTests = lib.optionals stdenv.isDarwin [ "test_ssh" ];
33
34 # don't swallow stdout/stderr
35 pytestFlagsArray = [ "-s" ];
36
37 meta = with lib; {
38 description = "Execute commands remote via ssh and locally in parallel with python";
39 homepage = "https://github.com/numtide/deploykit";
40 license = licenses.mit;
41 maintainers = with maintainers; [ mic92 zowoq ];
42 platforms = platforms.unix;
43 };
44}