Merge pull request #121942 from mjlbach/bump_matrix-nio_dependencies

pythonPackages.matrix-nio: 0.15.2 -> 0.18.0, update build system and dependencies
This commit is contained in:
Guillaume Girol 2021-05-09 09:41:45 +00:00 committed by GitHub
commit f7adb8b94e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 77 additions and 14 deletions

View File

@ -1,7 +1,7 @@
{ lib, stdenv, buildPythonApplication, fetchFromGitHub, pythonOlder, { lib, stdenv, buildPythonApplication, fetchFromGitHub, pythonOlder,
attrs, aiohttp, appdirs, click, keyring, Logbook, peewee, janus, attrs, aiohttp, appdirs, click, keyring, Logbook, peewee, janus,
prompt_toolkit, matrix-nio, dbus-python, pydbus, notify2, pygobject3, prompt_toolkit, matrix-nio, dbus-python, pydbus, notify2, pygobject3,
setuptools, setuptools, fetchpatch,
pytest, faker, pytest-aiohttp, aioresponses, pytest, faker, pytest-aiohttp, aioresponses,
@ -10,7 +10,7 @@
buildPythonApplication rec { buildPythonApplication rec {
pname = "pantalaimon"; pname = "pantalaimon";
version = "0.8.0"; version = "0.9.2";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
@ -19,9 +19,17 @@ buildPythonApplication rec {
owner = "matrix-org"; owner = "matrix-org";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "0n86cdpw85qzlcr1ynvar0f0zbphmdz1jia9r75lmj07iw4r5hk9"; sha256 = "11dfv5b2slqybisq6npmrqxrzslh4bjs4093vrc05s94046d9d9n";
}; };
patches = [
# accept newer matrix-nio versions
(fetchpatch {
url = "https://github.com/matrix-org/pantalaimon/commit/73f68c76fb05037bd7fe71688ce39eb1f526a385.patch";
sha256 = "0wvqcfan8yp67p6khsqkynbkifksp2422b9jy511mvhpy51sqykl";
})
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aiohttp aiohttp
appdirs appdirs

View File

@ -1,16 +1,16 @@
{ lib, fetchPypi, buildPythonPackage, pythonOlder, aiohttp, attrs }: { lib, fetchPypi, buildPythonPackage, pythonOlder, aiohttp, python-socks, attrs }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiohttp-socks"; pname = "aiohttp-socks";
version = "0.3.9"; version = "0.6.0";
src = fetchPypi { src = fetchPypi {
inherit version; inherit version;
pname = "aiohttp_socks"; pname = "aiohttp_socks";
sha256 = "1mn2ng66951mri49f99zh3660j83kvqhr6dpx90s9fkjwk83hmjy"; sha256 = "04w010bvi719ifpc3sshav95k10hf9nq8czn9yglkj206yxcypdr";
}; };
propagatedBuildInputs = [ aiohttp attrs ]; propagatedBuildInputs = [ aiohttp attrs python-socks ];
# Checks needs internet access # Checks needs internet access
doCheck = false; doCheck = false;

View File

@ -2,9 +2,11 @@
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, git , git
, poetry-core
, attrs , attrs
, future , future
, aiohttp , aiohttp
, aiohttp-socks
, aiofiles , aiofiles
, h11 , h11
, h2 , h2
@ -16,27 +18,37 @@
, peewee , peewee
, cachetools , cachetools
, atomicwrites , atomicwrites
, pytestCheckHook
, faker
, aioresponses
, hypothesis
, pytest-aiohttp
, pytest-benchmark
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "matrix-nio"; pname = "matrix-nio";
version = "0.15.2"; version = "0.18.0";
format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "poljar"; owner = "poljar";
repo = "matrix-nio"; repo = "matrix-nio";
rev = version; rev = version;
sha256 = "190xw3cvk4amr9pl8ip2i7k3xdjd0231kn2zl6chny5axx22p1dv"; sha256 = "1rn5lz81y4bvgjhxzd57qhr0lmkm5xljl4bj9w10lnm4f7ls0xdi";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
git git
poetry-core
pytestCheckHook
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
attrs attrs
future future
aiohttp aiohttp
aiohttp-socks
aiofiles aiofiles
h11 h11
h2 h2
@ -50,7 +62,20 @@ buildPythonPackage rec {
atomicwrites atomicwrites
]; ];
doCheck = false; checkInputs = [
faker
aioresponses
hypothesis
pytest-aiohttp
pytest-benchmark
];
disabledTests = [
# touches network
"test_connect_wrapper"
# time dependent and flaky
"test_transfer_monitor_callbacks"
];
meta = with lib; { meta = with lib; {
description = "A Python Matrix client library, designed according to sans I/O principles"; description = "A Python Matrix client library, designed according to sans I/O principles";

View File

@ -12,14 +12,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "peewee"; pname = "peewee";
version = "3.13.3"; version = "3.14.4";
# pypi release does not provide tests # pypi release does not provide tests
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "coleifer"; owner = "coleifer";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "1r67hxb9m6v0xbnbqfnsw6dahmdr94pf81b4x51jfw6x9sa4izi4"; sha256 = "0x85swpaffysc05kka0mab87cnilzw1lpacfhcx5ayabh0i2qsh6";
}; };

View File

@ -0,0 +1,22 @@
{ lib, buildPythonPackage, trio, curio, async-timeout, fetchPypi, pythonOlder }:
buildPythonPackage rec {
pname = "python-socks";
version = "1.2.4";
src = fetchPypi {
inherit pname version;
sha256 = "1n6xb18jy41ybgkmamakg6psp3qididd45qknxiggngaiibz43kx";
};
disabled = pythonOlder "3.6.1";
propagatedBuildInputs = [ trio curio async-timeout ];
meta = with lib; {
description = "Core proxy client (SOCKS4, SOCKS5, HTTP) functionality for Python";
homepage = "https://github.com/romis2012/python-socks";
license = licenses.asl20;
maintainers = with maintainers; [ mjlbach ];
};
}

View File

@ -1,19 +1,25 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, poetry-core
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "unpaddedbase64"; pname = "unpaddedbase64";
version = "1.1.0"; version = "2.1.0";
format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "matrix-org"; owner = "matrix-org";
repo = "python-${pname}"; repo = "python-${pname}";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
sha256 = "0if3fjfxga0bwdq47v77fs9hrcqpmwdxry2i2a7pdqsp95258nxd"; sha256 = "1n6har8pxv0mqb96lanzihp1xf76aa17jw3977drb1fgz947pnmz";
}; };
nativeBuildInputs = [
poetry-core
];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/matrix-org/python-unpaddedbase64"; homepage = "https://github.com/matrix-org/python-unpaddedbase64";
description = "Unpadded Base64"; description = "Unpadded Base64";

View File

@ -6668,6 +6668,8 @@ in {
python-socketio_4 = callPackage ../development/python-modules/python-socketio/4.nix { }; python-socketio_4 = callPackage ../development/python-modules/python-socketio/4.nix { };
python-socks = callPackage ../development/python-modules/python-socks { };
python-sql = callPackage ../development/python-modules/python-sql { }; python-sql = callPackage ../development/python-modules/python-sql { };
python-stdnum = callPackage ../development/python-modules/python-stdnum { }; python-stdnum = callPackage ../development/python-modules/python-stdnum { };