Skip to content

Commit 9a40000

Browse files
authored
rockcraft: 1.9.0 -> 1.10.0 (#397326)
2 parents ce3f301 + 9efe0c4 commit 9a40000

File tree

6 files changed

+30
-30
lines changed

6 files changed

+30
-30
lines changed

pkgs/by-name/ro/rockcraft/package.nix

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,18 @@
77
testers,
88
rockcraft,
99
cacert,
10+
writableTmpDirAsHomeHook,
1011
}:
1112

1213
python3Packages.buildPythonApplication rec {
1314
pname = "rockcraft";
14-
version = "1.9.0";
15+
version = "1.10.0";
1516

1617
src = fetchFromGitHub {
1718
owner = "canonical";
1819
repo = "rockcraft";
1920
rev = version;
20-
hash = "sha256-cgNKMxQrD9/OfmY5YEnpbNDstDdXqc/wdfCb4HvsgNM=";
21+
hash = "sha256-LrUs6/YRQYU0o1kmNdBhafvDIyw91FnW8+9i0Jj5f+Y=";
2122
};
2223

2324
pyproject = true;
@@ -39,20 +40,24 @@ python3Packages.buildPythonApplication rec {
3940
pytest-mock
4041
pytest-subprocess
4142
pytestCheckHook
43+
writableTmpDirAsHomeHook
4244
]
4345
++ [ dpkg ];
4446

45-
preCheck = ''
46-
mkdir -p check-phase
47-
export HOME="$(pwd)/check-phase"
48-
'';
49-
5047
disabledTests = [
5148
"test_project_all_platforms_invalid"
5249
"test_run_init_flask"
5350
"test_run_init_django"
5451
];
5552

53+
disabledTestPaths = [
54+
# Relies upon info in the .git directory which is stripped by fetchFromGitHub,
55+
# and the version is overridden anyway.
56+
"tests/integration/test_version.py"
57+
# Tests non-Nix native packaging
58+
"tests/integration/test_setuptools.py"
59+
];
60+
5661
passthru = {
5762
updateScript = nix-update-script { };
5863
tests.version = testers.testVersion {

pkgs/by-name/sn/snapcraft/lxd-socket-path.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
diff --git a/snapcraft_legacy/internal/build_providers/_lxd/_lxd.py b/snapcraft_legacy/internal/build_providers/_lxd/_lxd.py
2-
index 5fa4f898..41264ebb 100644
3-
--- a/snapcraft_legacy/internal/build_providers/_lxd/_lxd.py
4-
+++ b/snapcraft_legacy/internal/build_providers/_lxd/_lxd.py
1+
diff --git i/snapcraft_legacy/internal/build_providers/_lxd/_lxd.py w/snapcraft_legacy/internal/build_providers/_lxd/_lxd.py
2+
index 5fa4f898b..41264ebb0 100644
3+
--- i/snapcraft_legacy/internal/build_providers/_lxd/_lxd.py
4+
+++ w/snapcraft_legacy/internal/build_providers/_lxd/_lxd.py
55
@@ -142,7 +142,7 @@ class LXD(Provider):
66
build_provider_flags=build_provider_flags,
77
)

pkgs/by-name/sn/snapcraft/package.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313

1414
python3Packages.buildPythonApplication rec {
1515
pname = "snapcraft";
16-
version = "8.7.3";
16+
version = "8.8.0";
1717

1818
pyproject = true;
1919

2020
src = fetchFromGitHub {
2121
owner = "canonical";
2222
repo = "snapcraft";
2323
tag = version;
24-
hash = "sha256-T39hhosZTttX8jMlF5ul9oBcsh+FKusepj0k2NMZHNU=";
24+
hash = "sha256-54UOXEH3DxT1P/CRi09gEoq9si+x/1GHFuWRIyEvz3E=";
2525
};
2626

2727
patches = [

pkgs/by-name/sn/snapcraft/set-channel-for-nix.patch

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
1-
diff --git a/snapcraft/providers.py b/snapcraft/providers.py
2-
index a999537a..dcd290a7 100644
3-
--- a/snapcraft/providers.py
4-
+++ b/snapcraft/providers.py
5-
@@ -21,6 +21,7 @@ import sys
6-
from pathlib import Path
7-
from textwrap import dedent
8-
from typing import Dict, Optional
9-
+import platform
10-
11-
from craft_cli import emit
12-
from craft_providers import Provider, ProviderError, bases, executor
13-
@@ -178,14 +179,14 @@ def get_base_configuration(
1+
diff --git i/snapcraft/providers.py w/snapcraft/providers.py
2+
index 41ab6e8f1..ceaf7539b 100644
3+
--- i/snapcraft/providers.py
4+
+++ w/snapcraft/providers.py
5+
@@ -177,14 +177,15 @@ def get_base_configuration(
146
# injecting a snap on a non-linux system is not supported, so default to
157
# install snapcraft from the store's stable channel
168
snap_channel = get_managed_environment_snap_channel()
179
- if sys.platform != "linux" and not snap_channel:
10+
+ import platform
1811
+ if snap_channel is None and (sys.platform != "linux" or "NixOS" in platform.version()):
1912
emit.progress(
2013
- "Using snapcraft from snap store channel 'latest/stable' in instance "

pkgs/development/python-modules/craft-cli/default.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,20 @@
1111
pytest-check,
1212
pytest-mock,
1313
pytestCheckHook,
14+
writableTmpDirAsHomeHook,
1415
}:
1516

1617
buildPythonPackage rec {
1718
pname = "craft-cli";
18-
version = "2.15.0";
19+
version = "3.0.0";
1920

2021
pyproject = true;
2122

2223
src = fetchFromGitHub {
2324
owner = "canonical";
2425
repo = "craft-cli";
2526
tag = version;
26-
hash = "sha256-L8hOQJhjVAMo/WxEHHEk2QorlSdDFMGdcL/Q3Pv6mT4=";
27+
hash = "sha256-RAnvx5519iXZnJm8jtY635e0DEL7jnIgZtTCindqMTY=";
2728
};
2829

2930
postPatch = ''
@@ -46,6 +47,7 @@ buildPythonPackage rec {
4647
pytest-check
4748
pytest-mock
4849
pytestCheckHook
50+
writableTmpDirAsHomeHook
4951
];
5052

5153
pytestFlagsArray = [ "tests/unit" ];

pkgs/development/python-modules/craft-platforms/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
buildPythonPackage rec {
1616
pname = "craft-platforms";
17-
version = "0.6.0";
17+
version = "0.7.0";
1818
pyproject = true;
1919

2020
disabled = pythonOlder "3.10";
@@ -23,7 +23,7 @@ buildPythonPackage rec {
2323
owner = "canonical";
2424
repo = "craft-platforms";
2525
tag = version;
26-
hash = "sha256-/mnRFw79YMG34/0aQMi237KMNxWanyJixkEKq+zaSuE=";
26+
hash = "sha256-BFs+LqcJWqKMgEr7IzyP5qME+zaV6EFc79ustOB1Cno=";
2727
};
2828

2929
postPatch = ''

0 commit comments

Comments
 (0)