python3Packages.autobahn: update check section

launchpad/nixpkgs/master
Fabian Affolter 3 years ago
parent 5396cc05d9
commit 5c42f1081b
  1. 78
      pkgs/development/python-modules/autobahn/default.nix

@ -1,34 +1,78 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k,
six, txaio, twisted, zope_interface, cffi,
mock, pytest, cryptography, pynacl
{ lib
, argon2_cffi
, 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 {
pname = "autobahn";
version = "21.3.1";
disabled = !isPy3k;
disabled = pythonOlder "3.7";
src = fetchPypi {
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-asyncio
pytestCheckHook
];
checkInputs = [ mock pytest ];
checkPhase = ''
runHook preCheck
USE_TWISTED=true py.test $out
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
# https://github.com/crossbario/autobahn-python/issues/1235
doCheck = false;
preCheck = ''
# Run asyncio tests (requires twisted)
export USE_ASYNCIO=1
'';
pytestFlagsArray = [ "--pyargs autobahn" ];
pythonImportsCheck = [ "autobahn" ];
meta = with lib; {
description = "WebSocket and WAMP in Python for Twisted and asyncio.";
homepage = "https://crossbar.io/autobahn";
license = licenses.mit;
description = "WebSocket and WAMP in Python for Twisted and asyncio";
homepage = "https://crossbar.io/autobahn";
license = licenses.mit;
maintainers = with maintainers; [ nand0p ];
};
}

Loading…
Cancel
Save