mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
Merge pull request #147673 from fabaff/bump-cloud-init
cloud-init: 21.2 -> 21.4
This commit is contained in:
commit
33da2dcc49
|
@ -1,36 +1,30 @@
|
||||||
{ lib
|
{ lib
|
||||||
, fetchFromGitHub
|
|
||||||
, buildPythonApplication
|
, buildPythonApplication
|
||||||
, jinja2
|
|
||||||
, oauthlib
|
|
||||||
, configobj
|
|
||||||
, pyyaml
|
|
||||||
, requests
|
|
||||||
, jsonschema
|
|
||||||
, jsonpatch
|
|
||||||
, httpretty
|
|
||||||
, dmidecode
|
|
||||||
, pytestCheckHook
|
|
||||||
, shadow
|
|
||||||
, cloud-utils
|
, cloud-utils
|
||||||
|
, dmidecode
|
||||||
|
, fetchFromGitHub
|
||||||
, openssh
|
, openssh
|
||||||
|
, python3
|
||||||
|
, shadow
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "cloud-init";
|
pname = "cloud-init";
|
||||||
version = "21.2";
|
version = "21.4";
|
||||||
namePrefix = "";
|
namePrefix = "";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "canonical";
|
owner = "canonical";
|
||||||
repo = "cloud-init";
|
repo = "cloud-init";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0vhjkgs49ixfa3kkj5s3v3gcxvypm3cdvfk6adrk2bx3wv2cbhvz";
|
sha256 = "09413qz9y2csvhjb4krjnkfj97vlykx79j912p27jjcrg82f1nib";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./0001-add-nixos-support.patch ];
|
patches = [ ./0001-add-nixos-support.patch ];
|
||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
substituteInPlace setup.py --replace /lib/systemd $out/lib/systemd
|
substituteInPlace setup.py \
|
||||||
|
--replace /lib/systemd $out/lib/systemd
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
@ -40,17 +34,18 @@ buildPythonApplication rec {
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
jinja2
|
|
||||||
oauthlib
|
|
||||||
configobj
|
configobj
|
||||||
|
jinja2
|
||||||
|
jsonpatch
|
||||||
|
jsonschema
|
||||||
|
netifaces
|
||||||
|
oauthlib
|
||||||
pyyaml
|
pyyaml
|
||||||
requests
|
requests
|
||||||
jsonschema
|
|
||||||
jsonpatch
|
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = with python3.pkgs; [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
httpretty
|
httpretty
|
||||||
dmidecode
|
dmidecode
|
||||||
|
@ -78,6 +73,16 @@ buildPythonApplication rec {
|
||||||
"TestInstallChefOmnibus"
|
"TestInstallChefOmnibus"
|
||||||
# https://github.com/canonical/cloud-init/pull/893
|
# https://github.com/canonical/cloud-init/pull/893
|
||||||
"TestGetPackageMirrorInfo"
|
"TestGetPackageMirrorInfo"
|
||||||
|
# Disable failing VMware and PuppetAio tests
|
||||||
|
"test_get_data_iso9660_with_network_config"
|
||||||
|
"test_get_data_vmware_guestinfo_with_network_config"
|
||||||
|
"test_get_host_info"
|
||||||
|
"test_no_data_access_method"
|
||||||
|
"test_install_with_collection"
|
||||||
|
"test_install_with_custom_url"
|
||||||
|
"test_install_with_default_arguments"
|
||||||
|
"test_install_with_no_cleanup"
|
||||||
|
"test_install_with_version"
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTestPaths = [
|
disabledTestPaths = [
|
||||||
|
@ -99,7 +104,9 @@ buildPythonApplication rec {
|
||||||
export TMPDIR=/tmp
|
export TMPDIR=/tmp
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pythonImportsCheck = [ "cloudinit" ];
|
pythonImportsCheck = [
|
||||||
|
"cloudinit"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://cloudinit.readthedocs.org";
|
homepage = "https://cloudinit.readthedocs.org";
|
||||||
|
|
Loading…
Reference in a new issue