Skip to content

Commit 6eed6cc

Browse files
authored
python312Packages.autobahn: 23.6.2 -> 24.4.2 (#344348)
2 parents 66415f2 + deb293c commit 6eed6cc

File tree

3 files changed

+28
-30
lines changed

3 files changed

+28
-30
lines changed

pkgs/development/python-modules/autobahn/default.nix

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
lib,
33
buildPythonPackage,
4-
fetchPypi,
4+
fetchFromGitHub,
55
attrs,
66
argon2-cffi,
77
base58,
@@ -28,7 +28,7 @@
2828
pygobject3,
2929
pyopenssl,
3030
qrcode,
31-
pytest-asyncio_0_21,
31+
pytest-asyncio,
3232
python-snappy,
3333
pytestCheckHook,
3434
pythonOlder,
@@ -50,21 +50,18 @@
5050

5151
buildPythonPackage rec {
5252
pname = "autobahn";
53-
version = "23.6.2";
53+
version = "24.4.2";
5454
pyproject = true;
5555

5656
disabled = pythonOlder "3.9";
5757

58-
src = fetchPypi {
59-
inherit pname version;
60-
hash = "sha256-7JQhxSohAzZNHvBGgDbmAZ7oT3FyHoazb+Ga1pZsEYE=";
58+
src = fetchFromGitHub {
59+
owner = "crossbario";
60+
repo = "autobahn-python";
61+
rev = "refs/tags/v${version}";
62+
hash = "sha256-aeTE4a37zr83KZ+v947XikzFrHAhkZ4mj4tXdkQnB84=";
6163
};
6264

63-
postPatch = ''
64-
substituteInPlace setup.py \
65-
--replace-fail "pytest>=2.8.6,<3.3.0" "pytest"
66-
'';
67-
6865
build-system = [ setuptools ];
6966

7067
dependencies = [
@@ -77,7 +74,7 @@ buildPythonPackage rec {
7774
nativeCheckInputs =
7875
[
7976
mock
80-
pytest-asyncio_0_21
77+
pytest-asyncio
8178
pytestCheckHook
8279
]
8380
++ optional-dependencies.scram ++ optional-dependencies.serialization ++ optional-dependencies.xbr;
@@ -87,7 +84,10 @@ buildPythonPackage rec {
8784
export USE_ASYNCIO=1
8885
'';
8986

90-
pytestFlagsArray = [ "--pyargs autobahn" ];
87+
pytestFlagsArray = [
88+
"--ignore=./autobahn/twisted"
89+
"./autobahn"
90+
];
9191

9292
pythonImportsCheck = [ "autobahn" ];
9393

@@ -141,6 +141,7 @@ buildPythonPackage rec {
141141
};
142142

143143
meta = with lib; {
144+
changelog = "https://github.com/crossbario/autobahn-python/blob/${src.rev}/docs/changelog.rst";
144145
description = "WebSocket and WAMP in Python for Twisted and asyncio";
145146
homepage = "https://crossbar.io/autobahn";
146147
license = licenses.mit;

pkgs/development/python-modules/magic-wormhole/default.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ buildPythonPackage rec {
5858

5959
build-system = [ setuptools ];
6060

61+
pythonRelaxDeps = [
62+
"spake2"
63+
];
64+
6165
dependencies = [
6266
attrs
6367
autobahn

pkgs/development/python-modules/spake2/default.nix

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,28 @@
11
{
22
lib,
33
buildPythonPackage,
4-
fetchPypi,
4+
fetchFromGitHub,
55
fetchpatch2,
66
setuptools,
7-
hkdf,
7+
cryptography,
88
pytestCheckHook,
99
}:
1010

1111
buildPythonPackage rec {
1212
pname = "spake2";
13-
version = "0.8";
13+
version = "0.9";
1414
pyproject = true;
1515

16-
src = fetchPypi {
17-
inherit pname version;
18-
sha256 = "c17a614b29ee4126206e22181f70a406c618d3c6c62ca6d6779bce95e9c926f4";
16+
src = fetchFromGitHub {
17+
owner = "warner";
18+
repo = "python-spake2";
19+
rev = "refs/tags/v${version}";
20+
hash = "sha256-WPMGH1OzG+5O+2lNl2sv06/dNardY+BHYDS290Z36vQ=";
1921
};
2022

21-
patches = [
22-
# https://github.com/warner/python-spake2/pull/16
23-
(fetchpatch2 {
24-
name = "python312-compat.patch";
25-
url = "https://github.com/warner/python-spake2/commit/1b04d33106b105207c97c64b2589c45790720b0b.patch";
26-
hash = "sha256-OoBz0lN17VyVGg6UfT+Zj9M1faFTNpPIhxrwCgUwMc8=";
27-
})
28-
];
23+
build-system = [ setuptools ];
2924

30-
nativeBuildInputs = [ setuptools ];
31-
32-
propagatedBuildInputs = [ hkdf ];
25+
dependencies = [ cryptography ];
3326

3427
pythonImportsCheck = [ "spake2" ];
3528

0 commit comments

Comments
 (0)