2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchgit
|
2019-11-28 16:13:16 +00:00
|
|
|
, buildPythonApplication, buildPythonPackage
|
|
|
|
, pygobject3, pytestrunner, requests, responses, pytest, python-olm
|
|
|
|
, canonicaljson, olm
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
mainsrc = fetchgit {
|
|
|
|
url = "https://github.com/saadnpq/matrixcli";
|
|
|
|
rev = "61ebde173ca2f77185c261c2b7f6db297ca89863";
|
|
|
|
sha256 = "0xcjjy2xwlcixr9fwgzcfjjkivqpk104h7dslfa7lz9jq9pzqzvq";
|
|
|
|
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
|
|
|
|
pytestrunner pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
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 {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|