File tree Expand file tree Collapse file tree 3 files changed +28
-30
lines changed
pkgs/development/python-modules Expand file tree Collapse file tree 3 files changed +28
-30
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 ;
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11{
22 lib ,
33 buildPythonPackage ,
4- fetchPypi ,
4+ fetchFromGitHub ,
55 fetchpatch2 ,
66 setuptools ,
7- hkdf ,
7+ cryptography ,
88 pytestCheckHook ,
99} :
1010
1111buildPythonPackage 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
You can’t perform that action at this time.
0 commit comments