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: python312Packages.click-option-group #389624

Closed
3 tasks done
l0b0 opened this issue Mar 13, 2025 · 4 comments
Closed
3 tasks done

Build failure: python312Packages.click-option-group #389624

l0b0 opened this issue Mar 13, 2025 · 4 comments
Labels
0.kind: build failure A package fails to build

Comments

@l0b0
Copy link
Contributor

l0b0 commented Mar 13, 2025

Nixpkgs version

  • Unstable (25.05)

Steps to reproduce

nix-build -A python312Packages.click-option-group

Can Hydra reproduce this build failure?

Yes, Hydra can reproduce this build failure.

Link to Hydra build job

https://hydra.nixos.org/build/292374116

Relevant log output

Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing pytest-check-hook
Using pytestCheckPhase
Running phase: unpackPhase
unpacking source archive /nix/store/kqbai2wcjwwifns55bfpzm6fmmzcxdvs-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file "source/tests/test_click_option_group.py"
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
no configure script, doing nothing
Running phase: buildPhase
Executing setuptoolsBuildPhase
setup.py build flags: ''
running bdist_wheel
running build
running build_py
creating build/lib/click_option_group
copying click_option_group/_version.py -> build/lib/click_option_group
copying click_option_group/_helpers.py -> build/lib/click_option_group
copying click_option_group/_decorators.py -> build/lib/click_option_group
copying click_option_group/_core.py -> build/lib/click_option_group
copying click_option_group/__init__.py -> build/lib/click_option_group
running egg_info
creating click_option_group.egg-info
writing click_option_group.egg-info/PKG-INFO
writing dependency_links to click_option_group.egg-info/dependency_links.txt
writing requirements to click_option_group.egg-info/requires.txt
writing top-level names to click_option_group.egg-info/top_level.txt
writing manifest file 'click_option_group.egg-info/SOURCES.txt'
reading manifest file 'click_option_group.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'click_option_group.egg-info/SOURCES.txt'
copying click_option_group/py.typed -> build/lib/click_option_group
/nix/store/49hg6cgj179pabdiyjy23yz3byw6axi0-python3.13-setuptools-75.8.0/lib/python3.13/site-packages/setuptools/_distutils/cmd.py:79: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/click_option_group
copying build/lib/click_option_group/py.typed -> build/bdist.linux-x86_64/wheel/./click_option_group
copying build/lib/click_option_group/__init__.py -> build/bdist.linux-x86_64/wheel/./click_option_group
copying build/lib/click_option_group/_core.py -> build/bdist.linux-x86_64/wheel/./click_option_group
copying build/lib/click_option_group/_decorators.py -> build/bdist.linux-x86_64/wheel/./click_option_group
copying build/lib/click_option_group/_helpers.py -> build/bdist.linux-x86_64/wheel/./click_option_group
copying build/lib/click_option_group/_version.py -> build/bdist.linux-x86_64/wheel/./click_option_group
running install_egg_info
Copying click_option_group.egg-info to build/bdist.linux-x86_64/wheel/./click_option_group-0.5.6-py3.13.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/click_option_group-0.5.6.dist-info/WHEEL
creating 'dist/click_option_group-0.5.6-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'click_option_group/__init__.py'
adding 'click_option_group/_core.py'
adding 'click_option_group/_decorators.py'
adding 'click_option_group/_helpers.py'
adding 'click_option_group/_version.py'
adding 'click_option_group/py.typed'
adding 'click_option_group-0.5.6.dist-info/LICENSE'
adding 'click_option_group-0.5.6.dist-info/METADATA'
adding 'click_option_group-0.5.6.dist-info/WHEEL'
adding 'click_option_group-0.5.6.dist-info/top_level.txt'
adding 'click_option_group-0.5.6.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Finished executing setuptoolsBuildPhase
Running phase: installPhase
Executing pypaInstallPhase
Successfully installed click_option_group-0.5.6-py3-none-any.whl
Finished executing pypaInstallPhase
Running phase: pythonOutputDistPhase
Executing pythonOutputDistPhase
Finished executing pythonOutputDistPhase
Running phase: fixupPhase
shrinking RPATHs of ELF executables and libraries in /nix/store/q1zibv3jp0wja6z29ja3pr6h09g1qqa0-python3.13-click-option-group-0.5.6
checking for references to /build/ in /nix/store/q1zibv3jp0wja6z29ja3pr6h09g1qqa0-python3.13-click-option-group-0.5.6...
patching script interpreter paths in /nix/store/q1zibv3jp0wja6z29ja3pr6h09g1qqa0-python3.13-click-option-group-0.5.6
stripping (with command strip and flags -S -p) in  /nix/store/q1zibv3jp0wja6z29ja3pr6h09g1qqa0-python3.13-click-option-group-0.5.6/lib
shrinking RPATHs of ELF executables and libraries in /nix/store/grs80d1528y8hkg3xzj6imw7bc738fqj-python3.13-click-option-group-0.5.6-dist
checking for references to /build/ in /nix/store/grs80d1528y8hkg3xzj6imw7bc738fqj-python3.13-click-option-group-0.5.6-dist...
patching script interpreter paths in /nix/store/grs80d1528y8hkg3xzj6imw7bc738fqj-python3.13-click-option-group-0.5.6-dist
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
Running phase: installCheckPhase
no Makefile or custom installCheckPhase, doing nothing
Running phase: pythonCatchConflictsPhase
Running phase: pythonRemoveBinBytecodePhase
Running phase: pythonImportsCheckPhase
Executing pythonImportsCheckPhase
Check whether the following modules can be imported: click_option_group
Running phase: pytestCheckPhase
Executing pytestCheckPhase
pytest flags: -m pytest
============================= test session starts ==============================
platform linux -- Python 3.13.2, pytest-8.3.4, pluggy-1.5.0
rootdir: /build/source
collected 31 items                                                             

tests/test_click_option_group.py ...F...........................         [100%]

=================================== FAILURES ===================================
______________________ test_missing_group_decl_first_api _______________________

runner = <click.testing.CliRunner object at 0x7ffff686fed0>

    def test_missing_group_decl_first_api(runner):
        @click.command()
        @click.option('--hello1')
        @optgroup.option('--foo')
        @optgroup.option('--bar')
        @click.option('--hello2')
        def cli(**params):
            pass
    
        result = runner.invoke(cli, ['--help'])
    
>       assert result.exception
E       assert None
E        +  where None = <Result okay>.exception

tests/test_click_option_group.py:111: AssertionError
=========================== short test summary info ============================
FAILED tests/test_click_option_group.py::test_missing_group_decl_first_api - assert None
========================= 1 failed, 30 passed in 0.20s =========================

Additional context

This breaks semgrep.

Broken upstream: click-contrib/click-option-group#65pallets/click#2844

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.12.17, NixOS, 25.05 (Warbler), 25.05.20250306.10069ef
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.24.12
  • channels(root): ""
  • nixpkgs: /nix/store/xq5rfjj1z2r8yx338arajg5vwsxh1fri-source

Notify maintainers


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.

@l0b0 l0b0 added the 0.kind: build failure A package fails to build label Mar 13, 2025
@naturallaw777
Copy link

This is also breaking the package synadm-0-47

error: builder for '/nix/store/2zjplm6vi0b4c96pcc3zga1q75pqi9ij-python3.12-click-option-group-0.5.6.drv' failed with exit code 1;
       last 25 log lines:
       >
       > =================================== FAILURES ===================================
       > ______________________ test_missing_group_decl_first_api _______________________
       >
       > runner = <click.testing.CliRunner object at 0x7ffff652cb60>
       >
       >     def test_missing_group_decl_first_api(runner):
       >         @click.command()
       >         @click.option('--hello1')
       >         @optgroup.option('--foo')
       >         @optgroup.option('--bar')
       >         @click.option('--hello2')
       >         def cli(**params):
       >             pass
       >
       >         result = runner.invoke(cli, ['--help'])
       >
       > >       assert result.exception
       > E       assert None
       > E        +  where None = <Result okay>.exception
       >
       > tests/test_click_option_group.py:111: AssertionError
       > =========================== short test summary info ============================
       > FAILED tests/test_click_option_group.py::test_missing_group_decl_first_api - assert None
       > ========================= 1 failed, 30 passed in 0.36s =========================
       For full logs, run 'nix log /nix/store/2zjplm6vi0b4c96pcc3zga1q75pqi9ij-python3.12-click-option-group-0.5.6.drv'.
error: 1 dependencies of derivation '/nix/store/c65bmdi80aw6cqz22nabalmi3fpjm7c4-synadm-0.47.drv' failed to build
error: 1 dependencies of derivation '/nix/store/gj9sb581fb4jgsvr260aif2hmmvzg51h-man-paths.drv' failed to build
error: 1 dependencies of derivation '/nix/store/s05yid1gdsb64awpa304fqd57balxhj6-synadm-0.47_fish-completions.drv' failed to build
error (ignored): error: cannot unlink '"/tmp/nix-build-notify_push-1.0.0.drv-3/build/source/target/x86_64-unknown-linux-gnu/release/deps"': Directory not empty
error: 1 dependencies of derivation '/nix/store/lbdrph8g1hcww46q70rcv3nv0qi1wakx-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/7x52ar5s3jvkva2wi19laj4s4xry6jym-nixos-system-nixos-25.05.20250318.b6eaf97.drv' failed to build

@naturallaw777
Copy link

Hey all, I think @mweinelt is the maintainer for this package.

@mweinelt
Copy link
Member

This is fixed on master and staging-next

@l0b0
Copy link
Contributor Author

l0b0 commented Mar 21, 2025

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

No branches or pull requests

3 participants