about summary refs log tree commit diff
path: root/pkgs/by-name/sn/snapcraft/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/sn/snapcraft/package.nix')
-rw-r--r--pkgs/by-name/sn/snapcraft/package.nix41
1 files changed, 10 insertions, 31 deletions
diff --git a/pkgs/by-name/sn/snapcraft/package.nix b/pkgs/by-name/sn/snapcraft/package.nix
index 9c6add8c197b..fc17c32a46bd 100644
--- a/pkgs/by-name/sn/snapcraft/package.nix
+++ b/pkgs/by-name/sn/snapcraft/package.nix
@@ -5,37 +5,14 @@
   lib,
   makeWrapper,
   nix-update-script,
-  python3,
+  python3Packages,
   squashfsTools,
   stdenv,
 }:
 
-let
-  python = python3.override {
-    self = python;
-    packageOverrides = self: super: {
-      pydantic-yaml = super.pydantic-yaml.overridePythonAttrs (old: rec {
-        version = "0.11.2";
-        src = fetchFromGitHub {
-          owner = "NowanIlfideme";
-          repo = "pydantic-yaml";
-          rev = "refs/tags/v${version}";
-          hash = "sha256-AeUyVav0/k4Fz69Qizn4hcJKoi/CDR9eUan/nJhWsDY=";
-        };
-        dependencies = with self; [
-          deprecated
-          importlib-metadata
-          pydantic_1
-          ruamel-yaml
-          types-deprecated
-        ];
-      });
-    };
-  };
-in
-python.pkgs.buildPythonApplication rec {
+python3Packages.buildPythonApplication rec {
   pname = "snapcraft";
-  version = "8.3.3";
+  version = "8.4.1";
 
   pyproject = true;
 
@@ -43,7 +20,7 @@ python.pkgs.buildPythonApplication rec {
     owner = "canonical";
     repo = "snapcraft";
     rev = "refs/tags/${version}";
-    hash = "sha256-xE+5nYvXawl9HjeBI9ogwyYAVCj/sPoMCVfEeZL5vN4=";
+    hash = "sha256-34LtQ0CV5Ov0RJvN2eNFYEvtccHebpqjaYlhExE/z4c=";
   };
 
   patches = [
@@ -93,7 +70,7 @@ python.pkgs.buildPythonApplication rec {
 
   nativeBuildInputs = [ makeWrapper ];
 
-  dependencies = with python.pkgs; [
+  dependencies = with python3Packages; [
     attrs
     catkin-pkg
     click
@@ -102,6 +79,7 @@ python.pkgs.buildPythonApplication rec {
     craft-cli
     craft-grammar
     craft-parts
+    craft-platforms
     craft-providers
     craft-store
     debian
@@ -136,7 +114,7 @@ python.pkgs.buildPythonApplication rec {
     validators
   ];
 
-  build-system = with python.pkgs; [ setuptools ];
+  build-system = with python3Packages; [ setuptools ];
 
   pythonRelaxDeps = [
     "docutils"
@@ -151,7 +129,7 @@ python.pkgs.buildPythonApplication rec {
   '';
 
   nativeCheckInputs =
-    with python.pkgs;
+    with python3Packages;
     [
       pytest-check
       pytest-cov-stub
@@ -182,6 +160,7 @@ python.pkgs.buildPythonApplication rec {
     "test_get_base_configuration_snap_channel"
     "test_get_base_configuration_snap_instance_name_default"
     "test_get_base_configuration_snap_instance_name_not_running_as_snap"
+    "test_get_build_commands"
     "test_get_extensions_data_dir"
     "test_get_os_platform_alternative_formats"
     "test_get_os_platform_linux"
@@ -196,7 +175,7 @@ python.pkgs.buildPythonApplication rec {
     "test_snap_command_fallback"
     "test_validate_architectures_supported"
     "test_validate_architectures_unsupported"
-  ] ++ lib.optionals stdenv.isAarch64 [ "test_load_project" ];
+  ] ++ lib.optionals stdenv.hostPlatform.isAarch64 [ "test_load_project" ];
 
   disabledTestPaths = [
     "tests/unit/commands/test_remote.py"