24 buildPythonPackage rec {
29 disabled = pythonOlder "3.10";
32 inherit pname version;
33 hash = "sha256-hUjtoTwxoepBugeGsp3eRmz7gSYXwleSFRM1sXpBD2M=";
41 propagatedBuildInputs = [
52 ] ++ lib.optional withPlugins molecule-plugins;
54 pythonImportsCheck = [ "molecule" ];
56 # tests can't be easily run without installing things from ansible-galaxy
59 passthru.tests.version =
60 (testers.testVersion {
62 command = "PY_COLORS=0 ${pname} --version";
65 # workaround the error: Permission denied: '/homeless-shelter'
66 HOME = "$(mktemp -d)";
70 description = "Molecule aids in the development and testing of Ansible roles";
71 homepage = "https://github.com/ansible-community/molecule";
72 changelog = "https://github.com/ansible/molecule/releases/tag/v${version}";
73 license = licenses.mit;
74 maintainers = with maintainers; [ dawidd6 ];
75 mainProgram = "molecule";