Merge pull request #215724 from StillerHarpo/ansible-vault

ansible-vault: init at 2.1.0
This commit is contained in:
Pol Dellaiera 2023-07-25 03:09:36 +02:00 committed by GitHub
commit 315799b55d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,27 @@
{ lib, buildPythonPackage, fetchPypi, ansible-core, ... }:
buildPythonPackage rec {
pname = "ansible-vault-rw";
version = "2.1.0";
src = fetchPypi {
pname = "ansible-vault";
inherit version;
sha256 = "sha256-XOj9tUcPFEm3a/B64qvFZIDa1INWrkBchbaG77ZNvV4";
};
propagatedBuildInputs = [ ansible-core ];
# Otherwise tests will fail to create directory
# Permission denied: '/homeless-shelter'
preCheck = ''
export HOME=$(mktemp -d)
'';
meta = with lib; {
description = "This project aim to R/W an ansible-vault yaml file.";
homepage = "https://github.com/tomoh1r/ansible-vault";
changelog =
"https://github.com/tomoh1r/ansible-vault/blob/master/CHANGES.txt";
license = licenses.gpl3;
maintainers = with maintainers; [ StillerHarpo ];
};
}

View file

@ -510,6 +510,8 @@ self: super: with self; {
ansible-runner = callPackage ../development/python-modules/ansible-runner { };
ansible-vault-rw = callPackage ../development/python-modules/ansible-vault-rw { };
ansi = callPackage ../development/python-modules/ansi { };
ansicolor = callPackage ../development/python-modules/ansicolor { };