Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@exarkun
Last active November 11, 2019 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save exarkun/bdf097481bc64626abbef8c56d48ddc4 to your computer and use it in GitHub Desktop.
Save exarkun/bdf097481bc64626abbef8c56d48ddc4 to your computer and use it in GitHub Desktop.
======================================================================
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