1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, fetchpatch 5, glibcLocales 6, pythonOlder 7, unittestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "urwid-mitmproxy"; 12 version = "2.1.2.1"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "mitmproxy"; 19 repo = "urwid-mitmproxy"; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-93AauYWbrG/2smAhbNKGE0twGJZ2u9gBetlXGCpciH8="; 22 }; 23 24 pythonImportsCheck = [ 25 "urwid" 26 ]; 27 28 # Tests which assert on strings don't decode results correctly, see urwid 29 doCheck = false; 30 31 meta = with lib; { 32 description = "Urwid fork used by mitmproxy"; 33 homepage = "https://github.com/mitmproxy/urwid-mitmproxy"; 34 license = licenses.lgpl21Plus; 35 maintainers = with maintainers; [ fab ]; 36 }; 37}