Merge pull request #155062 from sumnerevans/heisenbridge-1.10.0

heisenbridge: 1.8.2 -> 1.10.0
This commit is contained in:
Bobby Rong 2022-01-15 12:33:30 +08:00 committed by GitHub
commit ebcd0d864f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,44 +1,28 @@
{ lib, fetchFromGitHub, fetchpatch, python3 }:
let
python = python3.override {
packageOverrides = self: super: {
mautrix_0_13 = self.mautrix.overridePythonAttrs (oldAttrs: rec {
version = "0.13.3";
src = oldAttrs.src.override {
inherit (oldAttrs) pname;
inherit version;
sha256 = "1e4a292469f3e200c182aaa5bf693a5c3834b2a0cfb3d29e4c9a1559db7740e3";
};
});
};
};
in
python.pkgs.buildPythonApplication rec {
python3.pkgs.buildPythonApplication rec {
pname = "heisenbridge";
version = "1.8.2";
version = "1.10.0";
src = fetchFromGitHub {
owner = "hifi";
repo = pname;
rev = "v${version}";
sha256 = "173prcd56rwlxjxlw67arnm12k1l317xi5s6m7jhmp8zbbrj5vwr";
sha256 = "sha256-rQBmg1CBourj/dDJ7P108gGMRdXWp6nwvHIBiQbJLQ0=";
};
postPatch = ''
echo "${version}" > heisenbridge/version.txt
'';
propagatedBuildInputs = with python.pkgs; [
propagatedBuildInputs = with python3.pkgs; [
aiohttp
irc
mautrix_0_13
mautrix
python-socks
pyyaml
];
checkInputs = with python.pkgs; [
checkInputs = with python3.pkgs; [
pytestCheckHook
];