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

pythonPackages.vcard: init at 0.13.0 #66738

Closed
wants to merge 0 commits into from
Closed

pythonPackages.vcard: init at 0.13.0 #66738

wants to merge 0 commits into from

Conversation

l0b0
Copy link
Contributor

@l0b0 l0b0 commented Aug 17, 2019

Motivation for this change

Add vCard validator.

Things done
  • Tested using sandboxing on NixOS
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests) (Not applicable AFAICT)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip" (Not applicable)
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after (before and after building? How to do this if I was not aware of this package before building?))
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

cc @l0b0

Copy link
Member

@FRidh FRidh left a comment

Choose a reason for hiding this comment

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

If it is used as a library the expresssion needs to be moved under python-modules/. In that case also explicitly list all dependencies as arguments, instead of passing in python3Packages. Currently you are mixing both the package set and dependencies and that should especially be avoided.

Aside from that it looks good.

@l0b0
Copy link
Contributor Author

l0b0 commented Aug 21, 2019

If it is used as a library the expresssion needs to be moved under python-modules/. In that case also explicitly list all dependencies as arguments, instead of passing in python3Packages. Currently you are mixing both the package set and dependencies and that should especially be avoided.

@FRidh Thank you for reviewing! Can you please check my changes? This is my first Nix package, and I don't even know what constitutes the "package set" and how it differs from the "dependencies". I thought propagatedBuildInputs + src constituted the dependencies, is that correct?

This package is meant to be used both as a command line tool (in fact that's the only way I use it myself), but it's also been made to work as a library. I've tried to make that work, but I'm not sure this is the right way of going about it. The documentation seems to focus on doing either one or the other, not both.

Edit: ping?

Copy link
Contributor

@alexarice alexarice left a comment

Choose a reason for hiding this comment

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

Builds via nix-review and the resulting program runs though I can't really test it as I have no idea what a vcard is

Copy link
Contributor

@jonringer jonringer left a comment

Choose a reason for hiding this comment

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

nix-review passes on NixOS
diff LGTM (good job!)
binary seems to work
leaf package

Personally I would rename the maintainer commit to maintainer: add l0b0 and then you look good to me. :)

@l0b0
Copy link
Contributor Author

l0b0 commented Aug 21, 2019

[…] I can't really test it as I have no idea what a vcard is

RFC 2426. Unfortunately the standard is in part ambiguous and self-contradictory, and it's really hard to find valid examples in the wild – even the examples given in section 7 of the RFC are invalid - they are missing the mandatory N property.

@l0b0
Copy link
Contributor Author

l0b0 commented Sep 23, 2019

Welp. Moved the changes to a branch, and now I don't seem to be able to recover this PR. New PR

@l0b0 l0b0 mentioned this pull request Sep 23, 2019
10 tasks
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.

None yet

5 participants