Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677{ lib, ansible-compat, ansible-core, buildPythonPackage, click-help-colors, enrich, fetchPypi, jsonschema, molecule, packaging, pluggy, rich, setuptools, setuptools-scm, testers, wcmatch, withPlugins ? true, writableTmpDirAsHomeHook, molecule-plugins, yamllint,}:
buildPythonPackage rec { pname = "molecule"; version = "26.8.0"; pyproject = true;
src = fetchPypi { inherit pname version; hash = "sha256-UGoKBBZoP05ASkLOjFapgM2Tt8gCJYIiwalzaw9Ow3w="; };
nativeBuildInputs = [ setuptools setuptools-scm ];
propagatedBuildInputs = [ ansible-compat ansible-core click-help-colors enrich jsonschema packaging pluggy rich yamllint wcmatch ] ++ lib.optional withPlugins molecule-plugins;
pythonImportsCheck = [ "molecule" ];
# tests can't be easily run without installing things from ansible-galaxy doCheck = false;
passthru.tests.version = (testers.testVersion { package = molecule; command = "PY_COLORS=0 ${pname} --version"; }).overrideAttrs (old: { # workaround the error: Permission denied: '/homeless-shelter' nativeBuildInputs = old.nativeBuildInputs ++ [ writableTmpDirAsHomeHook ]; });
meta = { description = "Aids in the development and testing of Ansible roles"; homepage = "https://github.com/ansible-community/molecule"; changelog = "https://github.com/ansible/molecule/releases/tag/v${version}"; license = lib.licenses.mit; maintainers = [ ]; mainProgram = "molecule"; };}