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

duplicity: build fails for Black version conflict (required version 24 does not match 25.1.0) #392506

Closed
3 tasks done
bittner opened this issue Mar 23, 2025 · 0 comments · Fixed by #392516
Closed
3 tasks done
Labels
0.kind: bug Something is broken

Comments

@bittner
Copy link

bittner commented Mar 23, 2025

Nixpkgs version

  • Unstable (25.05)

Describe the bug

When running sudo nixos-rebuild switch --flake .#$HOST with my Flake-based NixOS setup that installs duplicity via deja-dup from the current latest master branch, tests with pytest run very long and I get a version error for the Black formatter:

Oh no! 💥 💔 💥 The required version `24` does not match the running version `25.1.0`!

This error from testing/test_code.py::CodeTest::test_black stems from the configuration introduced in b924af2.

This could be fixed by keeping the Black version in the duplicity test setup in sync with the installed system version. Although, as a Python developer, I don't see the value in running the Black formatter in the NixOS package build at all. This should run earlier, e.g. in a PR when the code change is originally made.

Hence, it might be preferable to add "test_black" to the list of disabledTests.

Steps to reproduce

  1. Install deja-dup with your NixOS-config (GNOME-based target host)

Expected behaviour

The test_black test should not fail (or not run at all)

Screenshots

No response

Relevant log output

Additional context

No response

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.12.11, NixOS, 25.05 (Warbler), 25.05. ...
  • multi-user?: yes
  • version: nix-env (Nix) 2.24.11

Notify maintainers

@corngood


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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant