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.fluent-logger: init at 0.9.3 #44236

Merged
merged 1 commit into from Jul 30, 2018
Merged

pythonPackages.fluent-logger: init at 0.9.3 #44236

merged 1 commit into from Jul 30, 2018

Conversation

ngortheone
Copy link
Contributor

@ngortheone ngortheone commented Jul 30, 2018

Motivation for this change

Add fluent-logger package to pythonPackages

Things done

Added pypi fluent-logger package to pythonPackages.nix

  • Tested using sandboxing - Built on platform(s)
    • NixOS
    • macOS

References:
https://github.com/fluent/fluent-logger-python
https://pypi.org/project/fluent-logger/

Copy link
Member

@dotlambda dotlambda left a comment

Choose a reason for hiding this comment

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

Please format your code and commit message according to the contributing guidelines. Also please use the PR template.

buildPythonPackage rec {
pname = "fluent-logger";
version = "0.9.3";
name = "${pname}-${version}";
Copy link
Member

Choose a reason for hiding this comment

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

Drop this line.

sha256 = "09vii0iclfq6vhz37xyybksq9m3538hkr7z40sz2dlpf2rkg98mg";
};
propagatedBuildInputs = [ msgpack ];
doCheck = false;
Copy link
Member

Choose a reason for hiding this comment

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

Why?

meta = {
description = "A structured logger for Fluentd (Python)";
homepage = "https://github.com/fluent/fluent-logger-python";
};
Copy link
Member

Choose a reason for hiding this comment

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

license is missing

@ngortheone
Copy link
Contributor Author

@dotlambda thanks for prompt review. Can you show me where PR template is?

@dotlambda
Copy link
Member

It appears when you make a PR. You can also find it here: https://raw.githubusercontent.com/NixOS/nixpkgs/master/.github/PULL_REQUEST_TEMPLATE.md
It's not that important now but you'd have found a link to the contributing guidelines in there.
One thing that you should definitely change: use an indentation of two spaces.

@@ -0,0 +1,20 @@
{ pkgs, lib, buildPythonPackage, fetchPypi, msgpack }:
Copy link
Member

Choose a reason for hiding this comment

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

no pkgs

};

propagatedBuildInputs = [ msgpack ];
doCheck = false;
Copy link
Member

Choose a reason for hiding this comment

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

Why are the tests disabled? Please include a comment.


meta = with pkgs.stdenv.lib; {
description = "A structured logger for Fluentd (Python)";
homepage = "https://github.com/fluent/fluent-logger-python";
Copy link
Member

Choose a reason for hiding this comment

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

no quotes

@ngortheone
Copy link
Contributor Author

@dotlambda @FRidh addressed everything you pointed out.

@dotlambda
Copy link
Member

@ngortheone The commit message still needs to be changed to pythonPackages.fluent-logger: init at 0.9.3.

@dotlambda dotlambda changed the title Pypi fluent-logger package pythonPackages.fluent-logger: init at 0.9.3 Jul 30, 2018
@ngortheone
Copy link
Contributor Author

@dotlambda done

description = "A structured logger for Fluentd (Python)";
homepage = https://github.com/fluent/fluent-logger-python;
license = licenses.asl20;
};
Copy link
Member

Choose a reason for hiding this comment

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

Do you want to add yourself as a maintainer?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dotlambda I'd prefer not to, unless it is absolutely required. I am not a python expert, I am just adding missing dependency for my project.

@dotlambda
Copy link
Member

@GrahamcOfBorg build python2.pkgs.fluent-logger python3.pkgs.fluent-logger

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: python2.pkgs.fluent-logger, python3.pkgs.fluent-logger

Partial log (click to expand)

Successfully installed fluent-logger-0.9.3
/build/fluent-logger-0.9.3
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/h0lv6d0mrr6nfp30bfrc0yk8j895jvq8-python3.6-fluent-logger-0.9.3
strip is /nix/store/zrs21zqcchgyabjf4xfimncdq16njizc-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/h0lv6d0mrr6nfp30bfrc0yk8j895jvq8-python3.6-fluent-logger-0.9.3/lib
patching script interpreter paths in /nix/store/h0lv6d0mrr6nfp30bfrc0yk8j895jvq8-python3.6-fluent-logger-0.9.3
checking for references to /build in /nix/store/h0lv6d0mrr6nfp30bfrc0yk8j895jvq8-python3.6-fluent-logger-0.9.3...
/nix/store/49y4f0bwvcbd2py2l59004993l4i5y97-python2.7-fluent-logger-0.9.3
/nix/store/h0lv6d0mrr6nfp30bfrc0yk8j895jvq8-python3.6-fluent-logger-0.9.3

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: python2.pkgs.fluent-logger, python3.pkgs.fluent-logger

Partial log (click to expand)

Successfully installed fluent-logger-0.9.3
/build/fluent-logger-0.9.3
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/z286813cr62xxpycs0qhyya1fpj2xvbw-python3.6-fluent-logger-0.9.3
strip is /nix/store/1hi76hr87bd1y1q1qjk0lv8nmcjip1c8-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/z286813cr62xxpycs0qhyya1fpj2xvbw-python3.6-fluent-logger-0.9.3/lib
patching script interpreter paths in /nix/store/z286813cr62xxpycs0qhyya1fpj2xvbw-python3.6-fluent-logger-0.9.3
checking for references to /build in /nix/store/z286813cr62xxpycs0qhyya1fpj2xvbw-python3.6-fluent-logger-0.9.3...
/nix/store/v7qknnk9m4ih70ciichddaz44pq4c3lx-python2.7-fluent-logger-0.9.3
/nix/store/z286813cr62xxpycs0qhyya1fpj2xvbw-python3.6-fluent-logger-0.9.3

@dotlambda dotlambda merged commit 742627f into NixOS:master Jul 30, 2018
@ngortheone ngortheone deleted the fluent-logger branch July 31, 2018 00:42
@ngortheone
Copy link
Contributor Author

@dotlambda @FRidh can you cherry pick this to 18.03? I can create a PR (I am not sure what is the standard process for back-porting changes)

copumpkin added a commit that referenced this pull request Jul 31, 2018
pythonPackages.fluent-logger: init at 0.9.3 (#44236)
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

4 participants