Skip to content

Commit 49ab8d1

Browse files
committed
1 parent 97ba249 commit 49ab8d1

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
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;

0 commit comments

Comments
 (0)