10 buildPythonPackage rec {
13 format = "setuptools";
16 inherit pname version;
17 sha256 = "sha256-Nmj9r4OzPJQ9tOdQ4MVU4xwg9jM4SWiV3U1kEGgNnEs=";
20 # test_help expects architecture-dependent Linux signal numbers.
22 # {test_locals,test_socket_path} fail to remove /tmp/manhole-socket
23 # on the x86_64-darwin builder.
25 # TODO: change this back to `doCheck = stdenv.hostPlatform.isLinux` after
26 # https://github.com/ionelmc/python-manhole/issues/54 is fixed
35 # Based on its tox.ini
36 export PYTHONUNBUFFERED=yes
37 export PYTHONPATH=.:tests:$PYTHONPATH
39 # The tests use manhole-cli
40 export PATH="$PATH:$out/bin"
42 # test_uwsgi fails with:
43 # http.client.RemoteDisconnected: Remote end closed connection without response
44 py.test -vv -k "not test_uwsgi"
48 homepage = "https://github.com/ionelmc/python-manhole";
49 description = "Debugging manhole for Python applications";
50 mainProgram = "manhole-cli";
51 license = licenses.bsd2;
52 maintainers = with maintainers; [ ivan ];