forked from mirrors/nixpkgs
Merge pull request #154067 from kevincox/mautrix-facebook-max-version
This commit is contained in:
commit
6cd04f70b8
|
@ -7,13 +7,13 @@
|
|||
|
||||
python3.pkgs.buildPythonPackage rec {
|
||||
pname = "mautrix-facebook";
|
||||
version = "0.3.2";
|
||||
version = "2022-01-10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mautrix";
|
||||
repo = "facebook";
|
||||
rev = "v${version}";
|
||||
sha256 = "1n7gshm2nir6vgjkj36lq9m2bclkgy0y236xi8zvdlvfcb2m596f";
|
||||
rev = "eebfbe49fc699806e1d71becf261ba0995c91f60";
|
||||
hash = "sha256-zfsuoPySIRAAmsSL0NUUVH7k+xV7rZOHOkIvBQdVe0A=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
|
@ -30,9 +30,13 @@ python3.pkgs.buildPythonPackage rec {
|
|||
ruamel-yaml
|
||||
unpaddedbase64
|
||||
yarl
|
||||
zstandard
|
||||
] ++ lib.optional enableSystemd systemd;
|
||||
|
||||
doCheck = false;
|
||||
postPatch = ''
|
||||
# Drop version limiting so that every dependency update doesn't break this package.
|
||||
sed -i -e 's/,<.*//' requirements.txt
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/bin
|
||||
|
@ -44,6 +48,10 @@ python3.pkgs.buildPythonPackage rec {
|
|||
chmod +x $out/bin/mautrix-facebook
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
$out/bin/mautrix-facebook --help
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/mautrix/facebook";
|
||||
description = "A Matrix-Facebook Messenger puppeting bridge";
|
||||
|
|
Loading…
Reference in a new issue