Skip to content

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

Merged
emilazy merged 5 commits intoNixOS:masterfrom
pyrox0:denose/python-hglib
Jul 31, 2024
Merged

python312Packages.python-hglib: Remove nose dependency; modernize#330739
emilazy merged 5 commits intoNixOS:masterfrom
pyrox0:denose/python-hglib

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.

@pyrox0 pyrox0 requested a review from natsukium as a code owner July 28, 2024 22:31
@github-actions github-actions bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Jul 28, 2024
@pyrox0 pyrox0 force-pushed the denose/python-hglib branch from c82c93a to 0104528 Compare July 28, 2024 23:11
@ofborg ofborg bot requested a review from mattmelling July 29, 2024 01:58
@ofborg ofborg bot added 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Jul 29, 2024
@pyrox0 pyrox0 changed the title python312Packages.python-hglib: Remove nose dependency python312Packages.python-hglib: Remove nose dependency; modernize Jul 29, 2024
@pyrox0 pyrox0 requested a review from SuperSandro2000 July 29, 2024 04:57
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.

@pyrox0 pyrox0 force-pushed the denose/python-hglib branch from 0104528 to d4b2b01 Compare July 29, 2024 16:48
@pyrox0 pyrox0 requested a review from emilazy July 29, 2024 16:48
@pyrox0 pyrox0 force-pushed the denose/python-hglib branch from d4b2b01 to 43a5b1e Compare July 29, 2024 16:59
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
@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

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: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants