2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, ansible-compat
|
|
|
|
, ansible-core
|
|
|
|
, click-help-colors
|
|
|
|
, enrich
|
|
|
|
, jsonschema
|
|
|
|
, withPlugins ? true, molecule-plugins
|
|
|
|
, packaging
|
|
|
|
, pluggy
|
|
|
|
, rich
|
|
|
|
, setuptools
|
|
|
|
, setuptools-scm
|
|
|
|
, yamllint
|
|
|
|
, wcmatch
|
|
|
|
, wheel
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "molecule";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "6.0.3";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-0qiBBi/MXvHgjB5RJ8BDVNLJUXGVXicL2Cs/v+9y07A=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
wheel
|
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Molecule aids in the development and testing of Ansible roles";
|
|
|
|
homepage = "https://github.com/ansible-community/molecule";
|
|
|
|
maintainers = with maintainers; [ dawidd6 ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|