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

pyznap: init at 1.1.2 #53563

Merged
merged 1 commit into from Feb 18, 2019
Merged

pyznap: init at 1.1.2 #53563

merged 1 commit into from Feb 18, 2019

Conversation

rbrewer123
Copy link
Contributor

Motivation for this change

Add pyznap ZFS snapshot package.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-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)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-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)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@rbrewer123
Copy link
Contributor Author

Is there anything more I need to do to move this forward? This is my first PR to nixpkgs so I'm still learning the process.

Copy link
Contributor

@FlorianFranzen FlorianFranzen left a comment

Choose a reason for hiding this comment

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

I am not an expert, but these are a few things I noticed.

@@ -0,0 +1,28 @@
{ lib
, buildPythonApplication
, pythonOlder
Copy link
Contributor

Choose a reason for hiding this comment

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

pythonOlder is not used anywhere and probably should be removed from inputs.


propagatedBuildInputs = [ configparser paramiko ];

doCheck = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it have no checks or are they disable for a different reason? Please add a comment to make that clear.

Copy link
Contributor

Choose a reason for hiding this comment

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

In that case just add the extra packages needed for testing to checkInputs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Further digging reveals that the PyPI release of the package doesn't include the tests.

@FlorianFranzen
Copy link
Contributor

And you will also have to add yourself to the list of maintainers in nixpkgs/maintainers/maintainer-list.nix for the expression to build properly, see @GrahamcOfBorg output.

@rbrewer123
Copy link
Contributor Author

@FlorianFranzen thank you!

@rbrewer123
Copy link
Contributor Author

I squashed commits for good measure.

@rbrewer123
Copy link
Contributor Author

@FlorianFranzen is there anything else I need to do on this?

@FlorianFranzen
Copy link
Contributor

It looks good to me, but I do not have commit rights.

However, now that all checks are passing, you have a good chance that a maintainer might actually take a look at this and merge it.

You might also be interested add a custom NixOS module to ease configuration of pyznap, similar to e.g. services.rsnapshot.*.

@ryantm
Copy link
Member

ryantm commented Feb 18, 2019

@GrahamcOfBorg build pyznap

@ryantm
Copy link
Member

ryantm commented Feb 18, 2019

@rbrewer123 thanks!

@ryantm ryantm merged commit fdcf9bb into NixOS:master Feb 18, 2019
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