Merge master into staging-next

This commit is contained in:
Frederik Rietdijk
2019-11-17 10:31:52 +01:00
64 changed files with 610 additions and 259 deletions

View 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 ];
};
}

View File

@@ -7,6 +7,7 @@
, pyrsistent
, pyparsing
, cachecontrol
, lockfile
, pkginfo
, html5lib
, shellingham
@@ -59,6 +60,7 @@ in buildPythonPackage rec {
pyrsistent
pyparsing
cachecontrol
lockfile
pkginfo
html5lib
shellingham

View File

@@ -7,22 +7,21 @@
, trollius
, pythonOlder
, isPyPy
, pytestrunner
}:
buildPythonPackage rec {
pname = "pynvim";
version = "0.3.2";
version = "0.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "01dybk4vs452pljn1q3il5z2sd313ki0lgiglc0xmjc6wp290r6g";
sha256 = "1mp9ajsgrb9k2f3s8g7vdflj5mg02ii0d0wk4n6dmvjx52rqpzbi";
};
checkInputs = [ nose ];
checkPhase = ''
nosetests
'';
nativeBuildInputs = [
pytestrunner
];
# Tests require pkgs.neovim,
# which we cannot add because of circular dependency.

View File

@@ -0,0 +1,29 @@
{ lib, buildPythonPackage, olm,
cffi, future, typing }:
buildPythonPackage {
pname = "python-olm";
inherit (olm) src version;
sourceRoot = "${olm.name}/python";
buildInputs = [ olm ];
preBuild = ''
make include/olm/olm.h
'';
propagatedBuildInputs = [
cffi
future
typing
];
doCheck = false;
meta = with lib; {
description = "Python bindings for Olm";
homepage = "https://gitlab.matrix.org/matrix-org/olm/tree/master/python";
license = olm.meta.license;
maintainers = [ maintainers.tilpner ];
};
}