nixpkgs/pkgs/applications/networking/instant-messengers/matrix-commander/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
, buildPythonApplication
, cacert
, setuptools
, matrix-nio
, python-magic
, markdown
, pillow
, urllib3
, aiofiles
, notify2
, dbus-python
2022-08-15 08:05:09 +00:00
, pyxdg
, python-olm
}:
2022-06-11 15:57:49 +00:00
buildPythonApplication rec {
pname = "matrix-commander";
2022-08-15 08:05:09 +00:00
version = "3.5.0";
src = fetchFromGitHub {
owner = "8go";
repo = "matrix-commander";
2022-06-11 15:57:49 +00:00
rev = "v${version}";
2022-08-15 08:05:09 +00:00
sha256 = "sha256-/hNTaajZTyeIcGILIXqUVbBvZ8AUNZKBDsZ4Gr5RL2o=";
};
format = "pyproject";
postPatch = ''
# Dependencies already bundled with Python
sed -i \
-e '/uuid/d' \
-e '/argparse/d' \
-e '/asyncio/d' \
-e '/datetime/d' \
setup.cfg requirements.txt
'';
propagatedBuildInputs = [
cacert
setuptools
matrix-nio
python-magic
markdown
pillow
urllib3
aiofiles
notify2
dbus-python
2022-08-15 08:05:09 +00:00
pyxdg
python-olm
];
meta = with lib; {
description = "Simple but convenient CLI-based Matrix client app for sending and receiving";
homepage = "https://github.com/8go/matrix-commander";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = [ maintainers.seb314 ];
};
}