evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / manhole / default.nix
blob940dc355e4823a6d6a70e01d6b712a63b303db33
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pytest,
6   requests,
7   process-tests,
8 }:
10 buildPythonPackage rec {
11   pname = "manhole";
12   version = "1.8.1";
13   format = "setuptools";
15   src = fetchPypi {
16     inherit pname version;
17     sha256 = "sha256-Nmj9r4OzPJQ9tOdQ4MVU4xwg9jM4SWiV3U1kEGgNnEs=";
18   };
20   # test_help expects architecture-dependent Linux signal numbers.
21   #
22   # {test_locals,test_socket_path} fail to remove /tmp/manhole-socket
23   # on the x86_64-darwin builder.
24   #
25   # TODO: change this back to `doCheck = stdenv.hostPlatform.isLinux` after
26   # https://github.com/ionelmc/python-manhole/issues/54 is fixed
27   doCheck = false;
29   nativeCheckInputs = [
30     pytest
31     requests
32     process-tests
33   ];
34   checkPhase = ''
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"
45   '';
47   meta = with lib; {
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 ];
53   };