Merge pull request #112318 from fabaff/bump-autobahn
python3Packages.autobahn: 20.12.3 -> 21.3.1
This commit is contained in:
commit
f0bd273213
@ -1,34 +1,78 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, isPy3k,
|
{ lib
|
||||||
six, txaio, twisted, zope_interface, cffi,
|
, argon2_cffi
|
||||||
mock, pytest, cryptography, pynacl
|
, attrs
|
||||||
|
, buildPythonPackage
|
||||||
|
, cbor
|
||||||
|
, cbor2
|
||||||
|
, cffi
|
||||||
|
, cryptography
|
||||||
|
, fetchPypi
|
||||||
|
, flatbuffers
|
||||||
|
, mock
|
||||||
|
, msgpack
|
||||||
|
, passlib
|
||||||
|
, pynacl
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, twisted
|
||||||
|
, py-ubjson
|
||||||
|
, txaio
|
||||||
|
, ujson
|
||||||
|
, zope_interface
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "autobahn";
|
pname = "autobahn";
|
||||||
version = "21.3.1";
|
version = "21.3.1";
|
||||||
disabled = !isPy3k;
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "e126c1f583e872fb59e79d36977cfa1f2d0a8a79f90ae31f406faae7664b8e03";
|
sha256 = "00wf9dkfgakg80gy62prg650lb8zz9y9fdlxwxcznwp8hgsw29p1";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ six txaio twisted zope_interface cffi cryptography pynacl ];
|
propagatedBuildInputs = [
|
||||||
|
argon2_cffi
|
||||||
|
cbor
|
||||||
|
cbor2
|
||||||
|
cffi
|
||||||
|
cryptography
|
||||||
|
flatbuffers
|
||||||
|
msgpack
|
||||||
|
passlib
|
||||||
|
py-ubjson
|
||||||
|
pynacl
|
||||||
|
twisted
|
||||||
|
txaio
|
||||||
|
ujson
|
||||||
|
zope_interface
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [ mock pytest ];
|
checkInputs = [
|
||||||
checkPhase = ''
|
mock
|
||||||
runHook preCheck
|
pytest-asyncio
|
||||||
USE_TWISTED=true py.test $out
|
pytestCheckHook
|
||||||
runHook postCheck
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "pytest>=2.8.6,<3.3.0" "pytest"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Tests do no seem to be compatible yet with pytest 5.1
|
preCheck = ''
|
||||||
# https://github.com/crossbario/autobahn-python/issues/1235
|
# Run asyncio tests (requires twisted)
|
||||||
doCheck = false;
|
export USE_ASYNCIO=1
|
||||||
|
'';
|
||||||
|
|
||||||
|
pytestFlagsArray = [ "--pyargs autobahn" ];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "autobahn" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "WebSocket and WAMP in Python for Twisted and asyncio.";
|
description = "WebSocket and WAMP in Python for Twisted and asyncio";
|
||||||
homepage = "https://crossbar.io/autobahn";
|
homepage = "https://crossbar.io/autobahn";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ nand0p ];
|
maintainers = with maintainers; [ nand0p ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,10 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, isPy27, idna, typing ? null }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, isPy27
|
||||||
|
, idna
|
||||||
|
, typing ? null
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "hyperlink";
|
pname = "hyperlink";
|
||||||
@ -6,7 +12,7 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "427af957daa58bc909471c6c40f74c5450fa123dd093fc53efd2e91d2705a56b";
|
sha256 = "0sx50lkivsfjxx9zr4yh7l9gll2l9kvl0v0w8w4wk2x5v9bzjyj2";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ idna ]
|
propagatedBuildInputs = [ idna ]
|
||||||
@ -14,6 +20,7 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A featureful, correct URL for Python";
|
description = "A featureful, correct URL for Python";
|
||||||
|
homepage = "https://github.com/python-hyper/hyperlink";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; [ apeschar ];
|
maintainers = with maintainers; [ apeschar ];
|
||||||
|
32
pkgs/development/python-modules/py-ubjson/default.nix
Normal file
32
pkgs/development/python-modules/py-ubjson/default.nix
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "py-ubjson";
|
||||||
|
version = "0.16.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "Iotic-Labs";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1frn97xfa88zrfmpnvdk1pc03yihlchhph99bhjayvzlfcrhm5v3";
|
||||||
|
};
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pytestFlagsArray = [ "test/test.py" ];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "ubjson" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Universal Binary JSON draft-12 serializer for Python";
|
||||||
|
homepage = "https://github.com/Iotic-Labs/py-ubjson";
|
||||||
|
license = with licenses; [ asl20 ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
@ -1,30 +1,55 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, pytest, mock, six, twisted, isPy37, isPy27 }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, mock
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, six
|
||||||
|
, twisted
|
||||||
|
, zope_interface
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "txaio";
|
pname = "txaio";
|
||||||
version = "21.2.1";
|
version = "21.2.1";
|
||||||
disabled = isPy27;
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "7d6f89745680233f1c4db9ddb748df5e88d2a7a37962be174c0fd04c8dba1dc8";
|
sha256 = "sha256-fW+JdFaAIz8cTbndt0jfXojSp6N5Yr4XTA/QTI26Hcg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest mock ];
|
propagatedBuildInputs = [
|
||||||
|
six
|
||||||
|
twisted
|
||||||
|
zope_interface
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ six twisted ];
|
checkInputs = [
|
||||||
|
mock
|
||||||
|
pytest-asyncio
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
disabledTests = [
|
||||||
py.test -k "not test_sdist"
|
# No real value
|
||||||
'';
|
"test_sdist"
|
||||||
|
# Some tests seems out-dated and require additional data
|
||||||
|
"test_as_future"
|
||||||
|
"test_errback"
|
||||||
|
"test_create_future"
|
||||||
|
"test_callback"
|
||||||
|
"test_immediate_result"
|
||||||
|
"test_cancel"
|
||||||
|
];
|
||||||
|
|
||||||
# Needs some fixing
|
pythonImportsCheck = [ "txaio" ];
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Utilities to support code that runs unmodified on Twisted and asyncio.";
|
description = "Utilities to support code that runs unmodified on Twisted and asyncio";
|
||||||
homepage = "https://github.com/crossbario/txaio";
|
homepage = "https://github.com/crossbario/txaio";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ nand0p ];
|
maintainers = with maintainers; [ nand0p ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -5260,6 +5260,8 @@ in {
|
|||||||
|
|
||||||
py-air-control-exporter = callPackage ../development/python-modules/py-air-control-exporter { };
|
py-air-control-exporter = callPackage ../development/python-modules/py-air-control-exporter { };
|
||||||
|
|
||||||
|
py-ubjson = callPackage ../development/python-modules/py-ubjson { };
|
||||||
|
|
||||||
py2bit = callPackage ../development/python-modules/py2bit { };
|
py2bit = callPackage ../development/python-modules/py2bit { };
|
||||||
|
|
||||||
py3buddy = toPythonModule (callPackage ../development/python-modules/py3buddy { });
|
py3buddy = toPythonModule (callPackage ../development/python-modules/py3buddy { });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user