nixpkgs/pkgs/servers/heisenbridge/default.nix
2021-11-18 10:10:42 -07:00

36 lines
769 B
Nix

{ 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 ];
};
}