mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
12dcd34097
`python: process-tests: 1.2.1 -> 2.0.0` included the change
e6d4f4db27
which removed setup_coverage and thus broke manhole's tests.
48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytest
|
|
, requests
|
|
, process-tests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "manhole";
|
|
version = "1.5.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "11ivy8qiv87jl2lc1ldhv9dc4jwf3hz7wysdfiagdcd9kkd48v8m";
|
|
};
|
|
|
|
# test_help expects architecture-dependent Linux signal numbers.
|
|
#
|
|
# {test_locals,test_socket_path} fail to remove /tmp/manhole-socket
|
|
# on the x86_64-darwin builder.
|
|
#
|
|
# TODO: change this back to `doCheck = stdenv.isLinux` after
|
|
# https://github.com/ionelmc/python-manhole/issues/54 is fixed
|
|
doCheck = false;
|
|
|
|
checkInputs = [ pytest requests process-tests ];
|
|
checkPhase = ''
|
|
# Based on its tox.ini
|
|
export PYTHONUNBUFFERED=yes
|
|
export PYTHONPATH=.:tests:$PYTHONPATH
|
|
|
|
# The tests use manhole-cli
|
|
export PATH="$PATH:$out/bin"
|
|
|
|
# test_uwsgi fails with:
|
|
# http.client.RemoteDisconnected: Remote end closed connection without response
|
|
py.test -vv -k "not test_uwsgi"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://github.com/ionelmc/python-manhole;
|
|
description = "Debugging manhole for Python applications";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ ivan ];
|
|
};
|
|
}
|