Running nixpkgs-update (https://github.com/NixOS/infra/blob/main/non-critical-infra/modules/nixpkgs-update/README.md) with UPDATE_INFO: python3Packages.modelscope 0 -> 1 attrpath: python3Packages.modelscope Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/q1cazwh8qjs3lvn4vcc7gp30javdnbbs-packages.json.drv building '/nix/store/q1cazwh8qjs3lvn4vcc7gp30javdnbbs-packages.json.drv'... structuredAttrs is enabled Going to be running update for following packages: - python3.14-modelscope-1.39.1 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - python3.14-modelscope-1.39.1: UPDATING ... - python3.14-modelscope-1.39.1: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/development/python-modules/modelscope/default.nix b/pkgs/development/python-modules/modelscope/default.nix index 8e55bf9f9104..53c4acb974db 100644 --- a/pkgs/development/python-modules/modelscope/default.nix +++ b/pkgs/development/python-modules/modelscope/default.nix @@ -12,14 +12,14 @@ buildPythonPackage (finalAttrs: { pname = "modelscope"; - version = "1.39.1"; + version = "1.40.2"; pyproject = true; src = fetchFromGitHub { owner = "modelscope"; repo = "modelscope"; tag = "v${finalAttrs.version}"; - hash = "sha256-jG0g7G2cXVNFUB1ItHcC0wJg6Zj0oGkKGLhgHji3sPQ="; + hash = "sha256-bhvuCxdsjI4Z+jtvltVh7CrSLN0bhU4kplKwvwDsZmw="; }; build-system = [ setuptools ]; No auto update branch exists Received ExitFailure 1 when running Raw command: nix-build --option sandbox true --arg config "{ allowUnfree = true; allowAliases = false; }" --arg overlays "[ ]" -A python3Packages.modelscope Received ExitFailure 1 when running Raw command: nix --extra-experimental-features nix-command log -f . python3Packages.modelscope --arg config "{ allowUnfree = true; allowAliases = false; }" --arg overlays "[ ]" Standard output: error: … while evaluating the attribute 'drvPath' at /var/cache/nixpkgs-update/worker/worktree/python3Packages.modelscope/lib/customisation.nix:420:11: 419| // { 420| drvPath = | ^ 421| assert condition; … in the condition of the assert statement at /var/cache/nixpkgs-update/worker/worktree/python3Packages.modelscope/lib/customisation.nix:421:13: 420| drvPath = 421| assert condition; | ^ 422| drv.drvPath; (stack trace truncated; use '--show-trace' to show the full, detailed trace) error: Refusing to evaluate package 'python3.14-modelscope-1.40.2' in /var/cache/nixpkgs-update/worker/worktree/python3Packages.modelscope/pkgs/development/python-modules/modelscope/default.nix:41 because it is marked as insecure Known issues: - CVE-2026-84202: Unsafe YAML Deserialization in Model Config Loading You can install it anyway by allowing this package, using the following methods: a) To temporarily allow all insecure packages, you can use an environment variable for a single invocation of the nix tools: $ export NIXPKGS_ALLOW_INSECURE=1 Note: When using `nix shell`, `nix build`, `nix develop`, etc with a flake, then pass `--impure` in order to allow use of environment variables. b) for `nixos-rebuild` you can add ‘python3.14-modelscope-1.40.2’ to `nixpkgs.config.permittedInsecurePackages` in the configuration.nix, like so: { nixpkgs.config.permittedInsecurePackages = [ "python3.14-modelscope-1.40.2" ]; } c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add ‘python3.14-modelscope-1.40.2’ to `permittedInsecurePackages` in ~/.config/nixpkgs/config.nix, like so: { permittedInsecurePackages = [ "python3.14-modelscope-1.40.2" ]; }