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

patroni: init at 1.6.4 #80696

Merged
merged 1 commit into from Feb 25, 2020
Merged

patroni: init at 1.6.4 #80696

merged 1 commit into from Feb 25, 2020

Conversation

invokesus
Copy link
Contributor

Motivation for this change
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
  • 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.

preCheck = "export HOME=$(mktemp -d)";

meta = with lib; {
homepage = https://patroni.readthedocs.io/en/latest/;
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://patroni.readthedocs.io/en/latest/;
homepage = "https://patroni.readthedocs.io/en/latest/";

ydiff
];

preCheck = "export HOME=$(mktemp -d)";

This comment was marked as outdated.

};

postPatch = ''
# cdiff renamed to ydiff; remove when patroni source reflects this.
Copy link
Contributor

Choose a reason for hiding this comment

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

Please put the comments outside the hook.

name = "patroni-${version}";
version = "1.6.4";

src = fetchurl {
Copy link
Contributor

Choose a reason for hiding this comment

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

Use fetchFromGithub.

{ lib, pythonPackages, fetchurl }:

pythonPackages.buildPythonApplication rec {
name = "patroni-${version}";
Copy link
Contributor

Choose a reason for hiding this comment

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

The name attr will be applied automatically.

Suggested change
name = "patroni-${version}";
pname = "patroni";

done
'';

nativeBuildInputs = with pythonPackages; [
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a big deal, but I'd use checkInputs instead:

Suggested change
nativeBuildInputs = with pythonPackages; [
checkInputs = with pythonPackages; [

@invokesus
Copy link
Contributor Author

Thanks for reviewing. I amended and force-pushed. :)

@grahamc grahamc merged commit b6f8e00 into NixOS:master Feb 25, 2020
dtzWill pushed a commit to dtzWill/nixpkgs that referenced this pull request Feb 26, 2020
patroni: init at 1.6.4
(cherry picked from commit b6f8e00)
@invokesus invokesus deleted the contrib/patroni branch September 14, 2020 17:03
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