File tree Expand file tree Collapse file tree 1 file changed +14
-13
lines changed
pkgs/development/python-modules/autobahn Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Original file line number Diff line number Diff line change 11{
22 lib ,
33 buildPythonPackage ,
4- fetchPypi ,
4+ fetchFromGitHub ,
55 attrs ,
66 argon2-cffi ,
77 base58 ,
2828 pygobject3 ,
2929 pyopenssl ,
3030 qrcode ,
31- pytest-asyncio_0_21 ,
31+ pytest-asyncio ,
3232 python-snappy ,
3333 pytestCheckHook ,
3434 pythonOlder ,
5050
5151buildPythonPackage 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 ;
You can’t perform that action at this time.
0 commit comments