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.icecream: init at 2.0.0 #86029

Merged
merged 2 commits into from Jul 3, 2020
Merged

Conversation

renatoGarcia
Copy link
Member

Motivation for this change

Python IceCream package addition (https://github.com/gruns/icecream)

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions (arch)
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • 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)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.


meta = with lib; {
description = "Get information about what a frame is currently doing, particularly the AST node being executed";
homepage = https://github.com/alexmojaki/executing;
Copy link
Contributor

Choose a reason for hiding this comment

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

rfc 45

Suggested change
homepage = https://github.com/alexmojaki/executing;
homepage = "https://github.com/alexmojaki/executing";


meta = with lib; {
description = "A little library for sweet and creamy print debugging";
homepage = https://github.com/gruns/icecream;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
homepage = https://github.com/gruns/icecream;
homepage = "https://github.com/gruns/icecream";

Comment on lines 7315 to 7317
executing = callPackage ../development/python-modules/executing { };

icecream = callPackage ../development/python-modules/icecream { };
Copy link
Contributor

Choose a reason for hiding this comment

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

please attempt to sort them :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, I have sorted them the best I could. Earlier when coding the first unsorted version, my first thought was put the packages ordered by name, but the list is not really sorted. Some places have a semblance of order, only to be followed by some unsorted names, and then some ordered names again... Then, as the instructions at the file beginning say nothing about sorting, I just put the names at the end. :-)

I think that to avoid this kind of confusion, if the intent is have a sorted list, that should be written on file top instructions and the out of place names be reordered. Should I open an issue to discuss about that further?

Comment on lines +4 to +6
pname = "executing";
version = "0.4.3";

Copy link
Contributor

Choose a reason for hiding this comment

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

There are no tests included. Please try to checkout from source and check if they have unit tests, and try to run them. Unit tests give a good indication that they package has a high degree of validity and correctness given the python package set.

If tests are not available, then please use pythonImportsCheck to import the most important modules. This isn't as good as unit tests, but will usually give a good indication of run-time errors.


----------------------------------------------------------------------
Ran 0 tests in 0.000s

Copy link
Member Author

Choose a reason for hiding this comment

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

The PyPI sources hasn't the test files. I'm using the GitHub release now.

@renatoGarcia
Copy link
Member Author

Hi @jonringer! ping?

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/208

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.

LGTM

Result of nixpkgs-review pr 86029 1

6 packages built: - python27Packages.executing - python27Packages.icecream - python37Packages.executing - python37Packages.icecream - python38Packages.executing - python38Packages.icecream

@jonringer jonringer merged commit b19523b into NixOS:master Jul 3, 2020
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

3 participants