about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/molecule/default.nix
blob: c12dc3a92f3538870ec01145ab2ae4d1a3e5471f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{ lib
, buildPythonPackage
, fetchPypi
, ansible-compat
, ansible-core
, click-help-colors
, cookiecutter
, enrich
, jsonschema
, withPlugins ? true, molecule-plugins
, packaging
, pluggy
, rich
, setuptools
, yamllint
}:

buildPythonPackage rec {
  pname = "molecule";
  version = "5.1.0";
  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-+nr4n9+TF1OcPsqZyx5edSLXpX4LZ/W2mORCdvmNnYI=";
  };

  propagatedBuildInputs = [
    ansible-compat
    ansible-core
    click-help-colors
    cookiecutter
    enrich
    jsonschema
    packaging
    pluggy
    rich
    yamllint
  ] ++ lib.optional withPlugins molecule-plugins;

  nativeBuildInputs = [
    setuptools
  ];

  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;
  };
}