Skip to content

Build failure: python313Packages.bcrypt #482970

Description

@blitz

Nixpkgs version

  • Unstable (26.05)

Steps to reproduce

I use nixpkgs 80e4adb

nix-repl> pkgs = import ./. { crossSystem = "aarch64-linux"; }
Added pkgs.

nix-repl> :b pkgs.runCommand "foo" { nativeBuildInputs = [ pkgs.black ]; } "black --version ; echo foo > $out"
error: builder for '/nix/store/4pd2n5w7jyk2jp4w26xbz4rpi80jaipf-python3.13-bcrypt-5.0.0.drv' failed with exit code 1;
       last 25 log lines:
       >   cargo:rustc-check-cfg=cfg(py_sys_config, values("Py_DEBUG", "Py_REF_DEBUG", "Py_TRACE_REFS", "COUNT_ALLOCS"))
       >   cargo:rustc-check-cfg=cfg(pyo3_disable_reference_pool)
       >   cargo:rustc-check-cfg=cfg(pyo3_leak_on_drop_without_reference_pool)
       >   cargo:rustc-check-cfg=cfg(Py_3_7)
       >   cargo:rustc-check-cfg=cfg(Py_3_8)
       >   cargo:rustc-check-cfg=cfg(Py_3_9)
       >   cargo:rustc-check-cfg=cfg(Py_3_10)
       >   cargo:rustc-check-cfg=cfg(Py_3_11)
       >   cargo:rustc-check-cfg=cfg(Py_3_12)
       >   cargo:rustc-check-cfg=cfg(Py_3_13)
       >   cargo:rustc-check-cfg=cfg(Py_3_14)
       >   cargo:rustc-check-cfg=cfg(Py_3_15)
       >   cargo:rerun-if-env-changed=PYO3_CROSS
       >   cargo:rerun-if-env-changed=PYO3_CROSS_LIB_DIR
       >   cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_VERSION
       >   cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_IMPLEMENTATION
       >   cargo:rerun-if-env-changed=PYO3_NO_PYTHON
       >   cargo:rerun-if-env-changed=_PYTHON_SYSCONFIGDATA_NAME
       >
       >   --- stderr
       >   error: Could not find _sysconfigdata*.py in /nix/store/v8zkgmgm76scj31fhiax4mmxw7cnh5sy-python3-aarch64-unknown-linux-gnu-3.13.11/lib/python3.13
       > warning: build failed, waiting for other jobs to finish...
       > error: `cargo rustc --lib --message-format=json-render-diagnostics --manifest-path src/_bcrypt/Cargo.toml --target x86_64-unknown-linux-gnu --release -v --features pyo3/extension-module --crate-type cdylib --` failed with code 101
       >
       > ERROR Backend subprocess exited when trying to invoke build_wheel
       For full logs, run 'nix log /nix/store/4pd2n5w7jyk2jp4w26xbz4rpi80jaipf-python3.13-bcrypt-5.0.0.drv'.
error: 1 dependencies of derivation '/nix/store/ddmhc70py1mkh267zyv3shg1rxh0pb1z-python3.13-paramiko-4.0.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/kfn06dmqcxri17dazhgxkkpm71qkmk8g-python3.13-cryptography-46.0.3.drv' failed to build
error: 1 dependencies of derivation '/nix/store/znb8wiv7a9s838sm2sbf58afy17fxqph-python3.13-proxy-py-2.4.10.drv' failed to build
error: 1 dependencies of derivation '/nix/store/bhx7187agy0ffs1za6pvr7dpym0a30z8-python3.13-trustme-1.2.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/dgknqsi1y79m85wkm8imb5ywsv4rpnbl-python3.13-pyopenssl-25.1.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/wjragbl113z3i4kszgbpv0djldsa6qbx-python3.13-service-identity-24.2.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/r9dnl6asmdm932palb9iplk1knffifc0-python3.13-werkzeug-3.1.3.drv' failed to build
error: 2 dependencies of derivation '/nix/store/0bagcjz7ffdrbj1cv1gb9wqbd80bv48b-python3.13-aiohttp-3.13.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/j1azly0wm6lc9a7fmhph5w38vki4i118-python3.13-httpx-0.28.1.drv' failed to build
error: 2 dependencies of derivation '/nix/store/zyzs4vbgnz8qjmw7l6dvznkm09kr9s8f-python3.13-trio-0.32.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/iv5jpnxsiw84ia5qqbakhi5lj443fw29-python3.13-anyio-4.12.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/6jwqra2hpwy7l8d517ww0d87ywfcby06-python3.13-uvloop-0.22.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/8npz9pw6z7kxlc3cp5gakhbnvpxsg5kw-python3.13-httpbin-0.10.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/zf4929c7bbi43g8iy8s92rf89nzg88vl-python3.13-flasgger-0.9.7.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/354y2wfpr9f35ihkcw7s79sy05i3cb5z-python3.13-flask-3.1.2.drv' failed to build
error: 2 dependencies of derivation '/nix/store/10j0hs1g55ka44qkwzgb7j0mm96pxj8l-python3.13-black-25.1.0.drv' failed to build
error: 2 dependencies of derivation '/nix/store/b68xcw08az9fwbinmzdnz96q3rpn87dl-python3.13-httpcore-1.0.9.drv' failed to build
error: 1 dependencies of derivation '/nix/store/d95c0f0daa42xwgbp1x3gxghri0jnacm-python3.13-pytest-trio-0.8.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/3zchggk4gyj1r15ijmgczxr8d632akld-python3.13-pytest-httpbin-2.1.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/yfxfjplva3bxhha27lbl01yj96kc4y1w-foo.drv' failed to build

Can Hydra reproduce this build failure?

Hydra doesn’t try to build the package.

Link to Hydra build job

No response

Relevant log output

See above.

Additional context

This pops up when cross-compiling systemd-repart images with the repart module, because it will use black in modules/nixos/image/repart-image.nix to format amend-repart-definitions.py.

System metadata

fetching path input 'path:/nix/store/d73asqiyrdzcchk6dzw9aq134dlp1yzm-source'
 - system: `"x86_64-linux"`
 - host os: `Linux 6.12.66, NixOS, 26.05 (Yarara), 26.05.20260121.88d3861`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Lix, like Nix) 2.93.3
System type: x86_64-linux
Additional system types: aarch64-linux, i686-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/julian/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/julian/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/julian/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/julian/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/hz1f5nibclwljprc90zjb8rk42hjmh2z-lix-2.93.3/share`
 - channels(root): `""`
 - nixpkgs: `/nix/store/d73asqiyrdzcchk6dzw9aq134dlp1yzm-source`

Notify maintainers

@dotlambda @nikstur


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: build failureA package fails to build6.topic: cross-compilationBuilding packages on a different platform than they will be used on6.topic: pythonPython is a high-level, general-purpose programming language.

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions