Files
nixpkgs/pkgs/development/python-modules/ansible-vault-rw/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

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 = {
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 = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ StillerHarpo ];
};
}