-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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.opentracing: init at 2.2.0 #67760
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need futures for python2, and the tests were meant to be used with pytest. I would do something like:
{ lib, buildPythonPackage, fetchPypi, isPy27
, futures
, gevent
, mock
, pytest
, tornado
}:
buildPythonPackage rec {
pname = "opentracing";
version = "2.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "cfd231ba5c58f90bc277787e62861eb0c6e4af76e42957bec240bbdf71fb7e0e";
};
propagatedBuildInputs = lib.optional isPy27 futures;
checkInputs = [ gevent mock pytest tornado ];
checkPhase = ''
pytest
'';
meta = with lib; {
description = "This library is a Python platform API for OpenTracing";
homepage = "https://github.com/opentracing/opentracing-python";
license = licenses.asl20;
maintainers = with maintainers; [ rakesh4g ];
};
}
Thanks @jonringer. Yes it looks more appropriate. I will test this in my environment and update. |
attaching the build_output along with test phase. |
I think you'll probably need to make the 7225cff commit (where you add yourself as maintainer) to be the first commit and then squash the rest into a second commit. Build works for me though. Result of 2 packages were built:
|
ac02b63
to
2bc81f2
Compare
Hi @wd15 , I have tried to update as suggested. Thanks. |
You could also swap the order of the two remaining commits. |
ok @wd15 , Thanks i will do this. |
Hi @wd15, When i went to reverse the commit order, I realised that the order in my branch is already in reverse order (add maintainer first). But may be due to date difference it is not shown properly here.
|
No worries then. |
Is this ready to be merged? |
@CMCDragonkai Yes, This is ready to be merged. |
There was a problem hiding this 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
leaf package
Hey can we get this merged? |
to fix the commit history, please do:
|
OK, Thanks. |
1dfeb50
to
fddc35f
Compare
@GrahamcOfBorg build python27Packages.opentracing python37Packages.opentracing python38Packages.opentracing |
There was a problem hiding this 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
commits LGTM
outputs LGTM
[5 built, 0.0 MiB DL]
https://github.com/NixOS/nixpkgs/pull/67760
3 package were build:
python27Packages.opentracing python37Packages.opentracing python38Packages.opentracing
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @CMCDragonkai