depot/third_party/nixpkgs/pkgs/development/python-modules/molecule/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

60 lines
1.1 KiB
Nix

{ 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";
version = "6.0.2";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-uRk1P3mXRt5gsWonV1YneD45wmj98vKqA3LwFix7VHg=";
};
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;
};
}