summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/nixops/plugins/nixops-hercules-ci.nix
blob: 90ed88edfa0e91d5864e1dd273507f7b2b73da63 (plain) (blame)
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
{ lib
, buildPythonPackage
, fetchFromGitHub
, unstableGitUpdater
, poetry-core
, nixops
}:

buildPythonPackage {
  pname = "nixops-hercules-ci";
  version = "unstable-2021-10-06";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "hercules-ci";
    repo = "nixops-hercules-ci";
    rev = "e601d5baffd003fd5f22deeaea0cb96444b054dc";
    hash = "sha256-4IZ+qzhERJIhLcIq9FvVml+xAFJ8R4QpUjFRw2DZl2U=";
  };

  nativeBuildInputs = [
    poetry-core
  ];

  buildInputs = [
    nixops
  ];

  pythonImportsCheck = [ "nixops_hercules_ci" ];

  passthru.updateScript = unstableGitUpdater {};

  meta = with lib; {
    description = "Use Hercules CI as a NixOps backend";
    homepage = "https://github.com/hercules-ci/nixops-hercules-ci";
    license = licenses.asl20;
    maintainers = with maintainers; [ roberth ];
  };
}