Unverified Commit 7124c2d7 authored by Felix Bühler's avatar Felix Bühler Committed by GitHub
Browse files

Merge pull request #287990 from dawidd6/molecule

molecule: 6.0.3 -> 24.2.0
parents 6437f580 caefd161
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, testers
, ansible-compat
, ansible-core
, click-help-colors
, enrich
, jsonschema
, molecule
, withPlugins ? true, molecule-plugins
, packaging
, pluggy
@@ -19,12 +21,12 @@

buildPythonPackage rec {
  pname = "molecule";
  version = "6.0.3";
  version = "24.2.0";
  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-0qiBBi/MXvHgjB5RJ8BDVNLJUXGVXicL2Cs/v+9y07A=";
    hash = "sha256-R8mCp9Bdt4Rtp3/nFZ3rlG8myvsuOI/HGBK+AImkF3Y=";
  };

  nativeBuildInputs = [
@@ -51,6 +53,14 @@ buildPythonPackage rec {
  # 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'
    HOME = "$(mktemp -d)";
  });

  meta = with lib; {
    description = "Molecule aids in the development and testing of Ansible roles";
    homepage = "https://github.com/ansible-community/molecule";