Skip to content

python312Packages.pypass: Remove nose dependency; modernize#330222

Merged
emilazy merged 2 commits intoNixOS:masterfrom
pyrox0:denose/pypass
Jul 26, 2024
Merged

python312Packages.pypass: Remove nose dependency; modernize#330222
emilazy merged 2 commits intoNixOS:masterfrom
pyrox0:denose/pypass

Conversation

@pyrox0
Copy link
Member

@pyrox0 pyrox0 commented Jul 26, 2024

Description of changes

Part of #326513

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • 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/)
  • 24.11 Release Notes (or backporting 23.11 and 24.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.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Jul 26, 2024
Copy link
Member

@emilazy emilazy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Result of nixpkgs-review pr 330222 run on x86_64-linux 1

6 packages built:
  • pass-secret-service
  • pass-secret-service.dist
  • pypass (python312Packages.pypass)
  • pypass.dist (python312Packages.pypass.dist)
  • python311Packages.pypass
  • python311Packages.pypass.dist

I’m a bit concerned about carrying a password manager that hasn’t been updated in half a decade and used random.choice to generate passwords as late as 2019, but it seems like python3Packages.pass-secret-service is semi‐actively updated and still depending on this. So, this is an improvement, thanks!

Note, though, that it looks like there’s more trouble brewing on the horizon:

pypass> /nix/store/niacps3c0qx734l2sw9fgxl5gjm365xs-python3.11-setuptools-70.0.0/lib/python3.11/site-packages/setuptools/dist.py:476: SetuptoolsDeprecationWarning: Invalid dash-separated options
pypass> !!
pypass> 
pypass>         ********************************************************************************
pypass>         Usage of dash-separated 'description-file' will not be supported in future
pypass>         versions. Please use the underscore name 'description_file' instead.
pypass> 
pypass>         By 2024-Sep-26, you need to update your project and remove deprecated calls
pypass>         or your builds will no longer be supported.
pypass> 
pypass>         See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
pypass>         ********************************************************************************
pypass> 
pypass> !!

Comment on lines +72 to +74
# Presumably this test needs the X clipboard, which we don't have
# as the test environment is non-graphical.
disabledTests = [ "test_show_clip" ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xvfb-run could come in handy here, but it’s not a big deal.

@emilazy emilazy merged commit 52699af into NixOS:master Jul 26, 2024
@pyrox0 pyrox0 deleted the denose/pypass branch August 4, 2024 23:21
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants