mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
37 lines
769 B
Nix
37 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 ];
|
|
};
|
|
}
|