Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
50 lines
1.0 KiB
Nix
50 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
|
|
# build-system
|
|
setuptools,
|
|
|
|
# dependencies
|
|
ansible-core,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ansible-vault-rw";
|
|
version = "2.1.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "ansible-vault";
|
|
inherit version;
|
|
hash = "sha256-XOj9tUcPFEm3a/B64qvFZIDa1INWrkBchbaG77ZNvV4";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [ ansible-core ];
|
|
|
|
# Otherwise tests will fail to create directory
|
|
# Permission denied: '/homeless-shelter'
|
|
preCheck = ''
|
|
export HOME=$(mktemp -d)
|
|
'';
|
|
|
|
# no tests in sdist, no 2.1.0 tag on git
|
|
doCheck = false;
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
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 ];
|
|
};
|
|
}
|