summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/deploykit/default.nix
blob: 95ad3fbb5fe63b8ad4ab1e47e56b20319e579369 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  hatchling,
  bash,
  openssh,
  pytestCheckHook,
  stdenv,
}:

buildPythonPackage rec {
  pname = "deploykit";
  version = "1.2.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "numtide";
    repo = "deploykit";
    rev = version;
    hash = "sha256-RONE/oJdNmVjLYdJWDTzyXnmStkLIx92GsydaYYG5O4=";
  };

  build-system = [ hatchling ];

  nativeCheckInputs = [
    bash
    openssh
    pytestCheckHook
  ];

  disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ "test_ssh" ];

  # don't swallow stdout/stderr
  pytestFlags = [ "-s" ];

  pythonImportsCheck = [ "deploykit" ];

  meta = {
    description = "Execute commands remote via ssh and locally in parallel with python";
    homepage = "https://github.com/numtide/deploykit";
    changelog = "https://github.com/numtide/deploykit/releases/tag/${version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [
      mic92
      zowoq
    ];
    platforms = lib.platforms.unix;
  };
}