mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 01:33:20 +00:00
Merge pull request #287990 from dawidd6/molecule
molecule: 6.0.3 -> 24.2.0
This commit is contained in:
commit
7124c2d7f8
@ -1,11 +1,13 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, testers
|
||||||
, ansible-compat
|
, ansible-compat
|
||||||
, ansible-core
|
, ansible-core
|
||||||
, click-help-colors
|
, click-help-colors
|
||||||
, enrich
|
, enrich
|
||||||
, jsonschema
|
, jsonschema
|
||||||
|
, molecule
|
||||||
, withPlugins ? true, molecule-plugins
|
, withPlugins ? true, molecule-plugins
|
||||||
, packaging
|
, packaging
|
||||||
, pluggy
|
, pluggy
|
||||||
@ -19,12 +21,12 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "molecule";
|
pname = "molecule";
|
||||||
version = "6.0.3";
|
version = "24.2.0";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-0qiBBi/MXvHgjB5RJ8BDVNLJUXGVXicL2Cs/v+9y07A=";
|
hash = "sha256-R8mCp9Bdt4Rtp3/nFZ3rlG8myvsuOI/HGBK+AImkF3Y=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -51,6 +53,14 @@ buildPythonPackage rec {
|
|||||||
# tests can't be easily run without installing things from ansible-galaxy
|
# tests can't be easily run without installing things from ansible-galaxy
|
||||||
doCheck = false;
|
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; {
|
meta = with lib; {
|
||||||
description = "Molecule aids in the development and testing of Ansible roles";
|
description = "Molecule aids in the development and testing of Ansible roles";
|
||||||
homepage = "https://github.com/ansible-community/molecule";
|
homepage = "https://github.com/ansible-community/molecule";
|
||||||
|
Loading…
Reference in New Issue
Block a user