2024-01-13 08:15:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
, setuptools
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
, ansible-core
|
|
|
|
|
|
|
|
# tests
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ansible-vault-rw";
|
|
|
|
version = "2.1.0";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
pname = "ansible-vault";
|
|
|
|
inherit version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-XOj9tUcPFEm3a/B64qvFZIDa1INWrkBchbaG77ZNvV4";
|
2023-08-04 22:07:22 +00:00
|
|
|
};
|
2024-01-13 08:15:51 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ansible-core
|
|
|
|
];
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
# Otherwise tests will fail to create directory
|
|
|
|
# Permission denied: '/homeless-shelter'
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
# no tests in sdist, no 2.1.0 tag on git
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|