nixpkgs/pkgs/servers/heisenbridge/default.nix

37 lines
769 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, python3Packages }:
python3Packages.buildPythonApplication rec {
pname = "heisenbridge";
2021-11-18 20:10:42 +03:00
version = "1.7.0";
src = fetchFromGitHub {
owner = "hifi";
repo = pname;
rev = "v${version}";
2021-11-18 20:10:42 +03:00
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 ];
};
}