2021-11-18 01:00:23 +03:00
|
|
|
{ lib, fetchFromGitHub, python3Packages }:
|
2021-05-23 18:35:44 +03:00
|
|
|
|
2021-11-18 01:00:23 +03:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2021-05-23 18:35:44 +03:00
|
|
|
pname = "heisenbridge";
|
2021-11-18 20:10:42 +03:00
|
|
|
version = "1.7.0";
|
2021-05-23 18:35:44 +03:00
|
|
|
|
2021-11-18 01:00:23 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hifi";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-11-18 20:10:42 +03:00
|
|
|
sha256 = "sha256-rN+qoBS9zIy5EHlFQxgAlcz9haoYJNMKJ2wlS46UOi0=";
|
2021-05-23 18:35:44 +03:00
|
|
|
};
|
|
|
|
|
2021-11-18 01:00:23 +03:00
|
|
|
postPatch = ''
|
|
|
|
echo "${version}" > heisenbridge/version.txt
|
|
|
|
'';
|
|
|
|
|
2021-05-23 18:35:44 +03:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
aiohttp
|
|
|
|
irc
|
2021-09-23 16:45:41 +03:00
|
|
|
mautrix
|
2021-10-21 20:23:44 +03:00
|
|
|
python-socks
|
2021-05-23 18:35:44 +03:00
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
2021-11-18 01:00:23 +03:00
|
|
|
checkInputs = with python3Packages; [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-05-23 18:35:44 +03:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A bouncer-style Matrix-IRC bridge.";
|
|
|
|
homepage = "https://github.com/hifi/heisenbridge";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.sumnerevans ];
|
|
|
|
};
|
|
|
|
}
|