Unverified Commit 847ca079 authored by Matt Sturgeon's avatar Matt Sturgeon Committed by GitHub
Browse files

github-to-sops: init at 2.0.0 (#433178)

parents f8aa3080 12312b94
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -26313,6 +26313,13 @@
    githubId = 3742502;
    name = "Oscar Molnar";
  };
  typedrat = {
    name = "Alexis Williams";
    email = "alexis@typedr.at";
    github = "typedrat";
    githubId = 1057789;
    matrix = "@typedrat:thisratis.gay";
  };
  typetetris = {
    email = "ericwolf42@mail.com";
    github = "typetetris";
+50 −0
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  fetchpatch2,
  python3Packages,
  sops,
  versionCheckHook,
  nix-update-script,
}:
python3Packages.buildPythonApplication rec {
  pname = "github-to-sops";
  version = "2.0.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "tarasglek";
    repo = "github-to-sops";
    tag = "v${version}";
    hash = "sha256-HwJay5GaEWhXBsRijSgxX+FMKX7wIwssDVoekPKJ67M=";
  };

  build-system = with python3Packages; [
    setuptools
  ];

  dependencies = [
    sops
  ];

  patches = [
    (fetchpatch2 {
      name = "use-compliant-license-schema.patch";
      url = "https://github.com/tarasglek/github-to-sops/commit/798c864f1537f668fbaf7802651ec8beb998a7af.patch?full_index=1";
      hash = "sha256-udBO5dN8RCclXpkTj/gU6zcUcaoM+G9jPEw4dCZ+oT4=";
    })
  ];

  doInstallCheck = true;
  nativeInstallCheckInputs = [ versionCheckHook ];

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Tool for managing infrastructure secrets in git repositories using SOPS and GitHub SSH keys";
    homepage = "https://github.com/tarasglek/github-to-sops";
    license = lib.licenses.mit;
    mainProgram = "github-to-sops";
    maintainers = with lib.maintainers; [ typedrat ];
  };
}