Skip to content

Conversation

@mightyiam
Copy link

Python bindings for Monocypher crypto library

https://github.com/jetperch/pymonocypher

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/)
  • 25.05 Release Notes (or backporting 24.11 and 25.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 6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Apr 23, 2025
@mightyiam mightyiam marked this pull request as ready for review April 23, 2025 08:47
@nix-owners nix-owners bot requested a review from natsukium April 23, 2025 08:48
Comment on lines +31 to +35
Copy link
Contributor

Choose a reason for hiding this comment

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

You need to add unittestCheckHook for tests on checkPhase:

Suggested change
doCheck = true;
pythonImportsCheck = [ "monocypher" ];
doCheck = true;
pythonImportsCheck = [ "monocypher" ];
nativeCheckInputs = [
unittestCheckHook
];

Copy link
Author

Choose a reason for hiding this comment

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

Thank you, @renesat! Good now? Build log shows

python3.12-pymonocypher> Executing unittestCheckPhase
python3.12-pymonocypher> unittest flags: ''
python3.12-pymonocypher> ..../nix/store/fqm9bqqlmaqqr02qbalm1bazp810qfiw-python3-3.12.9/lib/python3.12/unittest/case.py:589: DeprecationWarning: Provide the full 64-byte key from generate_signing_key_pair()
python3.12-pymonocypher>   if method() is not None:
python3.12-pymonocypher> ..........
python3.12-pymonocypher> ----------------------------------------------------------------------
python3.12-pymonocypher> Ran 14 tests in 0.096s
python3.12-pymonocypher>
python3.12-pymonocypher> OK
python3.12-pymonocypher> Finished executing unittestCheckPhase

@nixpkgs-ci nixpkgs-ci bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jul 31, 2025
@nixpkgs-ci nixpkgs-ci bot added the 12.first-time contribution This PR is the author's first one; please be gentle! label Oct 2, 2025
@nixpkgs-ci nixpkgs-ci bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge conflict This PR has merge conflicts with the target branch 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.first-time contribution This PR is the author's first one; please be gentle!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants