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