Skip to content

Instantly share code, notes, and snippets.

@exarkun exarkun/build-result Secret
Last active Nov 11, 2019

Embed
What would you like to do?
======================================================================
ERROR: eliot.tests.test_testing (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
ImportError: Failed to import test module: eliot.tests.test_testing
Traceback (most recent call last):
File "/nix/store/imarc2jsq4ms73njy64v3lw7cdlah849-python-2.7.16/lib/python2.7/unittest/loader.py", line 254, in _find_tests
module = self._get_module_from_name(name)
File "/nix/store/imarc2jsq4ms73njy64v3lw7cdlah849-python-2.7.16/lib/python2.7/unittest/loader.py", line 232, in _get_module_from_name
__import__(name)
File "/build/eliot-1.7.0/eliot/__init__.py", line 7, in <module>
from ._message import Message
File "/build/eliot-1.7.0/eliot/_message.py", line 209, in <module>
from . import _output
File "/build/eliot-1.7.0/eliot/_output.py", line 19, in <module>
from zope.interface import Interface, implementer
ImportError: No module named zope.interface
======================================================================
ERROR: eliot.tests.test_json (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
ImportError: Failed to import test module: eliot.tests.test_json
Traceback (most recent call last):
File "/nix/store/imarc2jsq4ms73njy64v3lw7cdlah849-python-2.7.16/lib/python2.7/unittest/loader.py", line 254, in _find_tests
module = self._get_module_from_name(name)
File "/nix/store/imarc2jsq4ms73njy64v3lw7cdlah849-python-2.7.16/lib/python2.7/unittest/loader.py", line 232, in _get_module_from_name
__import__(name)
File "/build/eliot-1.7.0/eliot/__init__.py", line 7, in <module>
from ._message import Message
File "/build/eliot-1.7.0/eliot/_message.py", line 209, in <module>
from . import _output
File "/build/eliot-1.7.0/eliot/_output.py", line 18, in <module>
from . import _bytesjson as bytesjson
ImportError: cannot import name _bytesjson
{ lib, buildPythonPackage, fetchPypi, zope_interface, pyrsistent, boltons
, hypothesis, testtools, six, pytest }:
buildPythonPackage rec {
pname = "eliot";
version = "1.7.0";
src = fetchPypi {
inherit pname version;
sha256 = "0ylyycf717s5qsrx8b9n6m38vyj2k8328lfhn8y6r31824991wv8";
};
postPatch = ''
substituteInPlace setup.py \
--replace "boltons >= 19.0.1" boltons
# depends on eliot.prettyprint._main which we don't have here.
rm eliot/tests/test_prettyprint.py
'';
checkInputs = [ testtools pytest hypothesis ];
propagatedBuildInputs = [ six zope_interface pyrsistent boltons ];
meta = with lib; {
homepage = https://github.com/itamarst/eliot/;
description = "Logging library that tells you why it happened";
license = licenses.asl20;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.