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

python312Packages.python-hglib: Remove nose dependency; modernize #330739

Merged
merged 5 commits into from
Jul 31, 2024

Conversation

pyrox0
Copy link
Member

@pyrox0 pyrox0 commented Jul 28, 2024

Description of changes

Part of #326513

This required a few more patches and fixes to other packages than I would like, but this does allow all dependents of python-hglib to build and test properly.

Updates:

  • python312Packages.glean-parser: 4.1.2 -> 4.3.0
  • python312Packages.glean-sdk: 52.7.0 -> 60.4.0
    Changes:
  • mozphab has 3 failing tests disabled
  • python312Packages.python-hglib is now fetched directly from the upstream repo and has patches applied to remove nose and fix failing tests.

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.

@ofborg ofborg bot requested a review from mattmelling July 29, 2024 01:58
@pyrox0 pyrox0 changed the title python312Packages.python-hglib: Remove nose dependency python312Packages.python-hglib: Remove nose dependency; modernize Jul 29, 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.

Great work, thank you! Just a couple nits.

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 330739 run on aarch64-linux 1

21 packages built:
  • mozillavpn
  • mozphab
  • mozphab.dist
  • powerline (python312Packages.powerline)
  • powerline.dist (python312Packages.powerline.dist)
  • python311Packages.glean-parser
  • python311Packages.glean-parser.dist
  • python311Packages.glean-sdk
  • python311Packages.glean-sdk.dist
  • python311Packages.powerline
  • python311Packages.powerline.dist
  • python311Packages.python-hglib
  • python311Packages.python-hglib.dist
  • python312Packages.glean-parser
  • python312Packages.glean-parser.dist
  • python312Packages.glean-sdk
  • python312Packages.glean-sdk.dist
  • python312Packages.python-hglib
  • python312Packages.python-hglib.dist
  • sourcehut.hgsrht
  • sourcehut.hgsrht.dist

@emilazy emilazy merged commit a6100a4 into NixOS:master Jul 31, 2024
26 of 27 checks passed
@emilazy
Copy link
Member

emilazy commented Jul 31, 2024

I assume the lmdb library is vendored through some Rust *-sys crate now?

@pyrox0
Copy link
Member Author

pyrox0 commented Jul 31, 2024

Yes, it uses the lmdb-rkv-sys crate

@emilazy
Copy link
Member

emilazy commented Jul 31, 2024

Do you know if we can easily get it to use the system lmdb? We prefer to do that when possible.

@pyrox0
Copy link
Member Author

pyrox0 commented Aug 1, 2024

I'm not sure, as I've never used the crate before, and I'm not familiar with rust development. I'll look into it, but no guarantees that I can get anything working lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants