{ lib, fetchFromGitHub, python3Packages }: python3Packages.buildPythonApplication rec { pname = "heisenbridge"; version = "1.7.0"; src = fetchFromGitHub { owner = "hifi"; repo = pname; rev = "v${version}"; sha256 = "sha256-rN+qoBS9zIy5EHlFQxgAlcz9haoYJNMKJ2wlS46UOi0="; }; postPatch = '' echo "${version}" > heisenbridge/version.txt ''; propagatedBuildInputs = with python3Packages; [ aiohttp irc mautrix python-socks pyyaml ]; checkInputs = with python3Packages; [ pytestCheckHook ]; meta = with lib; { description = "A bouncer-style Matrix-IRC bridge."; homepage = "https://github.com/hifi/heisenbridge"; license = licenses.mit; maintainers = [ maintainers.sumnerevans ]; }; }