Skip to content

python3Packages.python-magic: backport fix for file-5.45#250362

Merged
doronbehar merged 1 commit intoNixOS:stagingfrom
trofi:python3Packages.python-magic-fix
Aug 20, 2023
Merged

python3Packages.python-magic: backport fix for file-5.45#250362
doronbehar merged 1 commit intoNixOS:stagingfrom
trofi:python3Packages.python-magic-fix

Conversation

@trofi
Copy link
Contributor

@trofi trofi commented Aug 20, 2023

Without the change ther build fails on staging as:

[   12s] test/python_magic_test.py:53: in assert_values
[   12s]     self.assertIn(value, expected_value)
[   12s] E   AssertionError: 'PDF document, version 1.2, 2 page(s)' not found in ('PDF document, version 1.2', 'PDF document, version 1.2, 2 pages')

Description of changes

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Without the change ther build fails on `staging` as:

    [   12s] test/python_magic_test.py:53: in assert_values
    [   12s]     self.assertIn(value, expected_value)
    [   12s] E   AssertionError: 'PDF document, version 1.2, 2 page(s)' not found in ('PDF document, version 1.2', 'PDF document, version 1.2, 2 pages')
@github-actions github-actions bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Aug 20, 2023
@trofi trofi mentioned this pull request Aug 20, 2023
12 tasks
@ofborg ofborg bot added 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 1001-2500 This PR causes many rebuilds on Linux and should target the staging branches. labels Aug 20, 2023
@doronbehar doronbehar merged commit 0ab52e7 into NixOS:staging Aug 20, 2023
@trofi trofi deleted the python3Packages.python-magic-fix branch August 20, 2023 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 1001-2500 This PR causes many rebuilds on Linux and should target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants