python3Packages.autobahn: update check section
This commit is contained in:
parent
5396cc05d9
commit
5c42f1081b
|
@ -1,32 +1,76 @@
|
||||||
{ 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 ];
|
||||||
|
|
Loading…
Reference in New Issue