Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure: python39Packages.setuptools-scm #392672

Open
3 tasks done
wegank opened this issue Mar 24, 2025 · 1 comment · May be fixed by #393122
Open
3 tasks done

Build failure: python39Packages.setuptools-scm #392672

wegank opened this issue Mar 24, 2025 · 1 comment · May be fixed by #393122
Labels
0.kind: build failure A package fails to build

Comments

@wegank
Copy link
Member

wegank commented Mar 24, 2025

Nixpkgs version

  • Unstable (25.05)

Steps to reproduce

$ nix-build -A python39Packages.setuptools-scm

Can Hydra reproduce this build failure?

No, Hydra cannot reproduce this build failure.

Link to Hydra build job

No response

Relevant log output

this derivation will be built:
  /nix/store/8r9jc3bpyd31ahi3vsp727xmkrpxbzb8-python3.9-setuptools-scm-8.2.0.drv
building '/nix/store/8r9jc3bpyd31ahi3vsp727xmkrpxbzb8-python3.9-setuptools-scm-8.2.0.drv'...
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pypa-build-hook
Using pypaBuildPhase
Sourcing python-runtime-deps-check-hook
Using pythonRuntimeDepsCheckHook
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Running phase: unpackPhase
unpacking source archive /nix/store/1qhfva9bykmark444jny08zaild6m6c2-setuptools_scm-8.2.0.tar.gz
source root is setuptools_scm-8.2.0
setting SOURCE_DATE_EPOCH to timestamp 1740177680 of file "setuptools_scm-8.2.0/setup.cfg"
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
no configure script, doing nothing
Running phase: buildPhase
Executing pypaBuildPhase
Creating a wheel...
pypa build flags: --no-isolation --outdir dist/ --wheel
* Getting build dependencies for wheel...
/build/setuptools_scm-8.2.0/src/setuptools_scm/_integration/setuptools.py:31: RuntimeWarning:
ERROR: setuptools==8.2.0 is used in combination with setuptools-scm>=8.x

Your build configuration is incomplete and previously worked by accident!
setuptools-scm requires setuptools>=61

Suggested workaround if applicable:
 - migrating from the deprecated setup_requires mechanism to pep517/518
   and using a pyproject.toml to declare build dependencies
   which are reliably pre-installed before running the build tools

  warnings.warn(
running egg_info
writing src/setuptools_scm.egg-info/PKG-INFO
writing dependency_links to src/setuptools_scm.egg-info/dependency_links.txt
writing entry points to src/setuptools_scm.egg-info/entry_points.txt
writing requirements to src/setuptools_scm.egg-info/requires.txt
writing top-level names to src/setuptools_scm.egg-info/top_level.txt
reading manifest file 'src/setuptools_scm.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching '*.nix'
warning: no previously-included files found matching '.pre-commit-config.yaml'
warning: no previously-included files found matching 'changelog.d/*'
warning: no previously-included files found matching '.git_archival.txt'
warning: no previously-included files found matching '.readthedocs.yaml'
warning: no files found matching '*.rst'
no previously-included directories found matching 'nextgen'
adding license file 'LICENSE'
writing manifest file 'src/setuptools_scm.egg-info/SOURCES.txt'

ERROR Missing dependencies:
        tomli<=2.0.2; python_version < "3.11"

Additional context

No response

System metadata

  • system: "aarch64-darwin"
  • host os: Darwin 24.3.0, macOS 15.3.2
  • multi-user?: yes
  • sandbox: no
  • version: nix-env (Nix) 2.24.12
  • channels(weijiawang): "darwin, home-manager, nixpkgs, nur-packages"
  • channels(root): "nixpkgs"
  • nixpkgs: /Users/weijiawang/.nix-defexpr/channels/nixpkgs

Notify maintainers

@NickCao


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.

@wegank wegank added the 0.kind: build failure A package fails to build label Mar 24, 2025
Antares0982 added a commit to Antares0982/pyyjson that referenced this issue Mar 24, 2025
@Kek5chen
Copy link
Contributor

seems like tomli was updated and the dependency now refers to tomli 2.2.1 in unstable which is too new for setuptools-scm with python < 3.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants