3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/instant-messengers/matrixcli/default.nix

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

54 lines
1.3 KiB
Nix
Raw Normal View History

2022-03-15 10:31:44 +00:00
{ lib, fetchFromGitHub
2019-11-28 16:13:16 +00:00
, buildPythonApplication, buildPythonPackage
, pygobject3, pytest-runner, requests, responses, pytest, python-olm
2019-11-28 16:13:16 +00:00
, canonicaljson, olm
}:
let
2022-03-15 10:31:44 +00:00
mainsrc = fetchFromGitHub {
owner = "saadnpq";
repo = "matrixcli";
2019-11-28 16:13:16 +00:00
rev = "61ebde173ca2f77185c261c2b7f6db297ca89863";
2022-03-15 10:31:44 +00:00
sha256 = "sha256-eH/8b8IyfXqUo7odSECYF+84pXTsP+5S7pFR3oWXknU=";
2019-11-28 16:13:16 +00:00
fetchSubmodules = true;
};
sdk = buildPythonPackage rec {
name = "${pname}-${version}";
pname = "matrix-python-sdk-matrixcli";
version = "0.0.2019-08-15";
2021-01-15 05:42:41 +00:00
2019-11-28 16:13:16 +00:00
src = "${mainsrc}/matrix-python-sdk/";
propagatedBuildInputs = [
requests responses olm python-olm canonicaljson
pytest-runner pytest
2019-11-28 16:13:16 +00:00
];
doCheck = false;
doInstallCheck = false;
meta = {
2021-01-15 05:42:41 +00:00
license = lib.licenses.asl20;
2019-11-28 16:13:16 +00:00
description = "Fork of Matrix Python SDK";
2021-01-15 05:42:41 +00:00
platforms = lib.platforms.linux;
2019-11-28 16:13:16 +00:00
};
};
in
buildPythonApplication rec {
pname = "matrixcli";
version = "0.0.2019-08-15";
src = mainsrc;
propagatedBuildInputs = [pygobject3 sdk];
meta = {
description = "CLI client for Matrix";
2021-01-15 05:42:41 +00:00
license = lib.licenses.gpl3;
maintainers = [lib.maintainers.raskin];
platforms = lib.platforms.linux;
2019-11-28 16:13:16 +00:00
homepage = "https://github.com/saadnpq/matrixcli";
};
}