about summary refs log tree commit diff
path: root/pkgs/development/python-modules/urwid-mitmproxy/default.nix
blob: 60dd32fc6fc39560d0bcc0e60659133d59506e79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, glibcLocales
, pythonOlder
, unittestCheckHook
}:

buildPythonPackage rec {
  pname = "urwid-mitmproxy";
  version = "2.1.2.1";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "mitmproxy";
    repo = "urwid-mitmproxy";
    rev = "refs/tags/${version}";
    hash = "sha256-93AauYWbrG/2smAhbNKGE0twGJZ2u9gBetlXGCpciH8=";
  };

  pythonImportsCheck = [
    "urwid"
  ];

  # Tests which assert on strings don't decode results correctly, see urwid
  doCheck = false;

  meta = with lib; {
    description = "Urwid fork used by mitmproxy";
    homepage = "https://github.com/mitmproxy/urwid-mitmproxy";
    license = licenses.lgpl21Plus;
    maintainers = with maintainers; [ fab ];
  };
}