1{ lib, buildPythonPackage, fetchPypi, ansible-core, ... }:
2
3buildPythonPackage rec {
4 pname = "ansible-vault-rw";
5 version = "2.1.0";
6 src = fetchPypi {
7 pname = "ansible-vault";
8 inherit version;
9 sha256 = "sha256-XOj9tUcPFEm3a/B64qvFZIDa1INWrkBchbaG77ZNvV4";
10 };
11 propagatedBuildInputs = [ ansible-core ];
12
13 # Otherwise tests will fail to create directory
14 # Permission denied: '/homeless-shelter'
15 preCheck = ''
16 export HOME=$(mktemp -d)
17 '';
18
19 meta = with lib; {
20 description = "This project aim to R/W an ansible-vault yaml file.";
21 homepage = "https://github.com/tomoh1r/ansible-vault";
22 changelog =
23 "https://github.com/tomoh1r/ansible-vault/blob/master/CHANGES.txt";
24 license = licenses.gpl3;
25 maintainers = with maintainers; [ StillerHarpo ];
26 };
27}