python3Packages.matrix-nio: init at 0.6
This commit is contained in:
parent
58a4eccf00
commit
08eb8dc3eb
49
pkgs/development/python-modules/matrix-nio/default.nix
Normal file
49
pkgs/development/python-modules/matrix-nio/default.nix
Normal file
|
@ -0,0 +1,49 @@
|
|||
{ lib, buildPythonPackage, fetchFromGitHub, git,
|
||||
attrs, future, peewee, h11, h2, atomicwrites, pycryptodome, sphinx, Logbook, jsonschema,
|
||||
python-olm, unpaddedbase64, aiohttp }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "nio";
|
||||
version = "0.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "poljar";
|
||||
repo = "matrix-nio";
|
||||
rev = version;
|
||||
sha256 = "0pq5i6ks3pck2kq9m4p3pw9hbvkzs27xkyv68mjnfc6chp2g2mg9";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace 'python-olm>=3.1.0' ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
git
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
attrs
|
||||
future
|
||||
peewee
|
||||
h11
|
||||
h2
|
||||
atomicwrites
|
||||
pycryptodome
|
||||
sphinx
|
||||
Logbook
|
||||
jsonschema
|
||||
python-olm
|
||||
unpaddedbase64
|
||||
aiohttp
|
||||
];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Python Matrix client library, designed according to sans I/O principles";
|
||||
homepage = "https://github.com/poljar/matrix-nio";
|
||||
license = licenses.isc;
|
||||
maintainers = [ maintainers.tilpner ];
|
||||
};
|
||||
}
|
|
@ -3849,6 +3849,8 @@ in {
|
|||
|
||||
matrix-client = callPackage ../development/python-modules/matrix-client { };
|
||||
|
||||
matrix-nio = callPackage ../development/python-modules/matrix-nio { };
|
||||
|
||||
mautrix-appservice = callPackage ../development/python-modules/mautrix-appservice { };
|
||||
|
||||
maya = callPackage ../development/python-modules/maya { };
|
||||
|
|
Loading…
Reference in a new issue