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.magic-wormhole: 0.10.4 -> 0.10.5 #35175
Conversation
propagatedBuildInputs = [ autobahn cffi click hkdf pynacl spake2 tqdm ipaddress humanize pyopenssl service-identity txtorcon ]; | ||
|
||
postPatch = '' | ||
sed -i -e "s|'ifconfig'|'${nettools}/bin/ifconfig'|" src/wormhole/ipaddrs.py | ||
sed -i -e "s|if (os.path.dirname(os.path.abspath(wormhole))|if not os.path.abspath(wormhole).startswith('/nix/store') and (os.path.dirname(os.path.abspath(wormhole))|" src/wormhole/test/test_cli.py | ||
'' + lib.optionalString (pythonAtLeast "3.3") '' |
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.
Also explaining why this was removed would be nice.
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.
Because of magic-wormhole/magic-wormhole@13b1539, which happened after the 0.10.5 release as I see right now.
I can however revert that change if you want.
@@ -3,7 +3,6 @@ | |||
, fetchPypi | |||
, pythonAtLeast | |||
, nettools | |||
, glibcLocales |
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.
Could you edit the second commit message and explain why you removed this?
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.
Tests work without it, so why should it be included?
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.
Did you try to run the binaries? Asking because the checkbox isn't ticked. 👍
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.
No I didn't since I don't use magic-wormhole. I just came across the build failure.
However, I only ever saw glibcLocales
added to make the tests run by setting something like LC_ALL
.
@@ -22,30 +21,25 @@ | |||
|
|||
buildPythonPackage rec { | |||
pname = "magic-wormhole"; | |||
version = "0.10.4"; | |||
name = "${pname}-${version}"; |
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.
For my interest, is name
not needed?
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.
Not anymore for buildPython*
.
The version bump is already in staging, so this shouldn't be merged until staging has been merged into master. |
9e74be7
to
51334f5
Compare
51334f5
to
6ed30ae
Compare
Rebased on staging. |
Tests fail for me when running ===============================================================================
[ERROR]
Traceback (most recent call last):
File "/nix/store/j5c4dbylqxhwphkkcm8ylirdgayfi40n-python2.7-Twisted-17.9.0/lib/python2.7/site-packages/twisted/trial/runner.py", line 508, in loadPackage
module = modinfo.load()
File "/nix/store/j5c4dbylqxhwphkkcm8ylirdgayfi40n-python2.7-Twisted-17.9.0/lib/python2.7/site-packages/twisted/python/modules.py", line 392, in load
return self.pathEntry.pythonPath.moduleLoader(self.name)
File "/nix/store/j5c4dbylqxhwphkkcm8ylirdgayfi40n-python2.7-Twisted-17.9.0/lib/python2.7/site-packages/twisted/python/reflect.py", line 308, in namedAny
topLevelPackage = _importAndCheckStack(trialname)
File "/nix/store/j5c4dbylqxhwphkkcm8ylirdgayfi40n-python2.7-Twisted-17.9.0/lib/python2.7/site-packages/twisted/python/reflect.py", line 255, in _importAndCheckStack
reraise(excValue, excTraceback)
File "/nix/store/i5sixyl4anhbrxnl4bv2z7y1bhlddihp-python2.7-magic-wormhole-0.10.4/lib/python2.7/site-packages/wormhole/test/test_args.py", line 6, in <module>
from .common import config
File "/nix/store/i5sixyl4anhbrxnl4bv2z7y1bhlddihp-python2.7-magic-wormhole-0.10.4/lib/python2.7/site-packages/wormhole/test/common.py", line 10, in <module>
from wormhole_transit_relay.transit_server import Transit
exceptions.ImportError: No module named wormhole_transit_relay.transit_server
wormhole.test.test_args
===============================================================================
[ERROR]
Traceback (most recent call last):
File "/nix/store/j5c4dbylqxhwphkkcm8ylirdgayfi40n-python2.7-Twisted-17.9.0/lib/python2.7/site-packages/twisted/trial/runner.py", line 508, in loadPackage
module = modinfo.load()
File "/nix/store/j5c4dbylqxhwphkkcm8ylirdgayfi40n-python2.7-Twisted-17.9.0/lib/python2.7/site-packages/twisted/python/modules.py", line 392, in load
return self.pathEntry.pythonPath.moduleLoader(self.name)
File "/nix/store/j5c4dbylqxhwphkkcm8ylirdgayfi40n-python2.7-Twisted-17.9.0/lib/python2.7/site-packages/twisted/python/reflect.py", line 308, in namedAny
topLevelPackage = _importAndCheckStack(trialname)
File "/nix/store/j5c4dbylqxhwphkkcm8ylirdgayfi40n-python2.7-Twisted-17.9.0/lib/python2.7/site-packages/twisted/python/reflect.py", line 255, in _importAndCheckStack
reraise(excValue, excTraceback)
File "/nix/store/i5sixyl4anhbrxnl4bv2z7y1bhlddihp-python2.7-magic-wormhole-0.10.4/lib/python2.7/site-packages/wormhole/test/test_cli.py", line 15, in <module>
from .common import ServerBase, config
File "/nix/store/i5sixyl4anhbrxnl4bv2z7y1bhlddihp-python2.7-magic-wormhole-0.10.4/lib/python2.7/site-packages/wormhole/test/common.py", line 10, in <module>
from wormhole_transit_relay.transit_server import Transit
exceptions.ImportError: No module named wormhole_transit_relay.transit_server
wormhole.test.test_cli
===============================================================================
[ERROR]
Traceback (most recent call last):
File "/nix/store/j5c4dbylqxhwphkkcm8ylirdgayfi40n-python2.7-Twisted-17.9.0/lib/python2.7/site-packages/twisted/trial/runner.py", line 508, in loadPackage
module = modinfo.load()
File "/nix/store/j5c4dbylqxhwphkkcm8ylirdgayfi40n-python2.7-Twisted-17.9.0/lib/python2.7/site-packages/twisted/python/modules.py", line 392, in load
return self.pathEntry.pythonPath.moduleLoader(self.name)
File "/nix/store/j5c4dbylqxhwphkkcm8ylirdgayfi40n-python2.7-Twisted-17.9.0/lib/python2.7/site-packages/twisted/python/reflect.py", line 308, in namedAny
topLevelPackage = _importAndCheckStack(trialname)
File "/nix/store/j5c4dbylqxhwphkkcm8ylirdgayfi40n-python2.7-Twisted-17.9.0/lib/python2.7/site-packages/twisted/python/reflect.py", line 255, in _importAndCheckStack
reraise(excValue, excTraceback)
File "/nix/store/i5sixyl4anhbrxnl4bv2z7y1bhlddihp-python2.7-magic-wormhole-0.10.4/lib/python2.7/site-packages/wormhole/test/test_server.py", line 9, in <module>
from .common import ServerBase
File "/nix/store/i5sixyl4anhbrxnl4bv2z7y1bhlddihp-python2.7-magic-wormhole-0.10.4/lib/python2.7/site-packages/wormhole/test/common.py", line 10, in <module>
from wormhole_transit_relay.transit_server import Transit
exceptions.ImportError: No module named wormhole_transit_relay.transit_server
wormhole.test.test_server
===============================================================================
[ERROR]
Traceback (most recent call last):
File "/nix/store/j5c4dbylqxhwphkkcm8ylirdgayfi40n-python2.7-Twisted-17.9.0/lib/python2.7/site-packages/twisted/trial/runner.py", line 508, in loadPackage
module = modinfo.load()
File "/nix/store/j5c4dbylqxhwphkkcm8ylirdgayfi40n-python2.7-Twisted-17.9.0/lib/python2.7/site-packages/twisted/python/modules.py", line 392, in load
return self.pathEntry.pythonPath.moduleLoader(self.name)
File "/nix/store/j5c4dbylqxhwphkkcm8ylirdgayfi40n-python2.7-Twisted-17.9.0/lib/python2.7/site-packages/twisted/python/reflect.py", line 308, in namedAny
topLevelPackage = _importAndCheckStack(trialname)
File "/nix/store/j5c4dbylqxhwphkkcm8ylirdgayfi40n-python2.7-Twisted-17.9.0/lib/python2.7/site-packages/twisted/python/reflect.py", line 255, in _importAndCheckStack
reraise(excValue, excTraceback)
File "/nix/store/i5sixyl4anhbrxnl4bv2z7y1bhlddihp-python2.7-magic-wormhole-0.10.4/lib/python2.7/site-packages/wormhole/test/test_transit.py", line 13, in <module>
from wormhole_transit_relay import transit_server
exceptions.ImportError: No module named wormhole_transit_relay
wormhole.test.test_transit
===============================================================================
[ERROR]
Traceback (most recent call last):
File "/nix/store/j5c4dbylqxhwphkkcm8ylirdgayfi40n-python2.7-Twisted-17.9.0/lib/python2.7/site-packages/twisted/trial/runner.py", line 508, in loadPackage
module = modinfo.load()
File "/nix/store/j5c4dbylqxhwphkkcm8ylirdgayfi40n-python2.7-Twisted-17.9.0/lib/python2.7/site-packages/twisted/python/modules.py", line 392, in load
return self.pathEntry.pythonPath.moduleLoader(self.name)
File "/nix/store/j5c4dbylqxhwphkkcm8ylirdgayfi40n-python2.7-Twisted-17.9.0/lib/python2.7/site-packages/twisted/python/reflect.py", line 308, in namedAny
topLevelPackage = _importAndCheckStack(trialname)
File "/nix/store/j5c4dbylqxhwphkkcm8ylirdgayfi40n-python2.7-Twisted-17.9.0/lib/python2.7/site-packages/twisted/python/reflect.py", line 255, in _importAndCheckStack
reraise(excValue, excTraceback)
File "/nix/store/i5sixyl4anhbrxnl4bv2z7y1bhlddihp-python2.7-magic-wormhole-0.10.4/lib/python2.7/site-packages/wormhole/test/test_wormhole.py", line 8, in <module>
from .common import ServerBase, poll_until, pause_one_tick
File "/nix/store/i5sixyl4anhbrxnl4bv2z7y1bhlddihp-python2.7-magic-wormhole-0.10.4/lib/python2.7/site-packages/wormhole/test/common.py", line 10, in <module>
from wormhole_transit_relay.transit_server import Transit
exceptions.ImportError: No module named wormhole_transit_relay.transit_server
wormhole.test.test_wormhole
===============================================================================
[ERROR]
Traceback (most recent call last):
File "/nix/store/j5c4dbylqxhwphkkcm8ylirdgayfi40n-python2.7-Twisted-17.9.0/lib/python2.7/site-packages/twisted/trial/runner.py", line 508, in loadPackage
module = modinfo.load()
File "/nix/store/j5c4dbylqxhwphkkcm8ylirdgayfi40n-python2.7-Twisted-17.9.0/lib/python2.7/site-packages/twisted/python/modules.py", line 392, in load
return self.pathEntry.pythonPath.moduleLoader(self.name)
File "/nix/store/j5c4dbylqxhwphkkcm8ylirdgayfi40n-python2.7-Twisted-17.9.0/lib/python2.7/site-packages/twisted/python/reflect.py", line 308, in namedAny
topLevelPackage = _importAndCheckStack(trialname)
File "/nix/store/j5c4dbylqxhwphkkcm8ylirdgayfi40n-python2.7-Twisted-17.9.0/lib/python2.7/site-packages/twisted/python/reflect.py", line 255, in _importAndCheckStack
reraise(excValue, excTraceback)
File "/nix/store/i5sixyl4anhbrxnl4bv2z7y1bhlddihp-python2.7-magic-wormhole-0.10.4/lib/python2.7/site-packages/wormhole/test/test_xfer_util.py", line 5, in <module>
from .common import ServerBase
File "/nix/store/i5sixyl4anhbrxnl4bv2z7y1bhlddihp-python2.7-magic-wormhole-0.10.4/lib/python2.7/site-packages/wormhole/test/common.py", line 10, in <module>
from wormhole_transit_relay.transit_server import Transit
exceptions.ImportError: No module named wormhole_transit_relay.transit_server
wormhole.test.test_xfer_util
-------------------------------------------------------------------------------
Ran 115 tests in 1.385s
FAILED (errors=6, successes=109)
builder for ‘/nix/store/xqrjsyd8sifz537688ha22zfdak6bgjn-python2.7-magic-wormhole-0.10.4.drv’ failed with exit code 1
error: build of ‘/nix/store/xqrjsyd8sifz537688ha22zfdak6bgjn-python2.7-magic-wormhole-0.10.4.drv’ failed |
6ed30ae
to
da0b5b1
Compare
Sorry, I was not careful enough. |
buildInputs = [ nettools glibcLocales ]; | ||
propagatedBuildInputs = [ autobahn cffi click hkdf pynacl spake2 tqdm ipaddress humanize pyopenssl service-identity txtorcon ]; | ||
propagatedBuildInputs = [ spake2 pynacl six attrs twisted autobahn automat hkdf tqdm click humanize ipaddress txtorcon ]; |
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.
Sorry that I changed the order so much. I just wanted the dependency to be in the same order as in setup.py
.
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.
Thanks for the info. In general though, I think it's a much better idea to have these comments in the commit messages, so that people could find out without having to find this PR.
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.
Changed commit message.
da0b5b1
to
750be45
Compare
It still fails for me, but not for the CI, so not sure. |
@GrahamcOfBorg build python2.pkgs.magic-wormhole python3.pkgs.magic-wormhole |
Success on x86_64-linux (full log) Partial log (click to expand)
|
Success on aarch64-linux (full log) Partial log (click to expand)
|
@asymmetric Can you try again, please? |
@dotlambda there were no new commits, AFAICT, so I don't think tests results would be different. Also, this being nix, we shouldn't have cases of "works on my machine", so I'd say go ahead and consider the build green, I must be doing something wrong. |
750be45
to
dbc2c3a
Compare
@GrahamcOfBorg eval |
@@ -0,0 +1,25 @@ | |||
{ lib, buildPythonPackage, fetchPypi, twisted, mock }: |
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.
this is a separate package and should thus have its own folder
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.
done
Add magic-wormhole-transit-relay dependency and clean up expression. Order of the buildInputs was changed to match the one in setup.py.
dbc2c3a
to
bc25df2
Compare
@GrahamcOfBorg build python2.pkgs.magic-wormhole python3.pkgs.magic-wormhole |
Success on aarch64-linux (full log) Partial log (click to expand)
|
Success on x86_64-linux (full log) Partial log (click to expand)
|
Motivation for this change
magic-wormhole is broken on master
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)/cc @asymmetric