2021-11-24 23:54:11 +00:00
|
|
|
{ lib, fetchFromGitHub, fetchpatch, python3Packages }:
|
2021-05-23 16:35:44 +01:00
|
|
|
|
2021-11-17 22:00:23 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2021-05-23 16:35:44 +01:00
|
|
|
pname = "heisenbridge";
|
2021-11-22 17:44:10 +00:00
|
|
|
version = "1.7.1";
|
2021-05-23 16:35:44 +01:00
|
|
|
|
2021-11-17 22:00:23 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hifi";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-11-22 17:44:10 +00:00
|
|
|
sha256 = "sha256-q1Rj8BehvYnV/Kah5YKAxBUz4j9WziSqn1fVeaKpy7g=";
|
2021-05-23 16:35:44 +01:00
|
|
|
};
|
|
|
|
|
2021-11-24 23:54:11 +00:00
|
|
|
patches = [
|
|
|
|
# Compatibility with aiohttp 3.8.0
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/hifi/heisenbridge/commit/cff5d33e0b617e6cf3a44dc00c72b98743175c9e.patch";
|
|
|
|
sha256 = "sha256-y5X4mWvX1bq0XNZNTYUc0iK3SzvaHpS7px53I7xC9c8=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-11-17 22:00:23 +00:00
|
|
|
postPatch = ''
|
|
|
|
echo "${version}" > heisenbridge/version.txt
|
|
|
|
'';
|
|
|
|
|
2021-05-23 16:35:44 +01:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
aiohttp
|
|
|
|
irc
|
2021-09-23 14:45:41 +01:00
|
|
|
mautrix
|
2021-10-21 18:23:44 +01:00
|
|
|
python-socks
|
2021-05-23 16:35:44 +01:00
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
2021-11-17 22:00:23 +00:00
|
|
|
checkInputs = with python3Packages; [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-05-23 16:35:44 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A bouncer-style Matrix-IRC bridge.";
|
|
|
|
homepage = "https://github.com/hifi/heisenbridge";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.sumnerevans ];
|
|
|
|
};
|
|
|
|
}
|