Skip to content

pkgs/pkcs7: Fix python library installation#125

Draft
henrirosten wants to merge 1 commit intomainfrom
trial-fix-pkcs7
Draft

pkgs/pkcs7: Fix python library installation#125
henrirosten wants to merge 1 commit intomainfrom
trial-fix-pkcs7

Conversation

@henrirosten
Copy link
Copy Markdown

@henrirosten henrirosten commented Jul 31, 2024

This change is an attempt to fix pkcs7 python library installation.

This change fixes (or attempts to fix) the following problems:

  • pkcs7 apparently depends on disttools package from https://github.com/jeppeter/disttools. The disttools isn't available in nixpkgs, nor is it packaged by the ci-test-automation flake. We would have to package it here, or break the dependency. The change done in this PR breaks the dependency, as it seems the package disttools is only needed for debugging. Therefore, this change simply removes the content from _ init_debug _.py that's between the tags ##importdebugstart and ##importdebugend.
  • Before the changes from this PR, the pkcs7 library could be imported, but the library contents was empty. The reason was, the package name __init_debug__.py is not valid. This PR renames the pkcs7 __init_debug__.py to __init__.py to make the import work correctly. I doubt the earlier version of the pkcs7 library - as imported in this flake - has ever worked. For more details, see this article.

Signed-off-by: Henri Rosten <henri.rosten@unikie.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant