2018-08-31 17:11:24 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, isPy33,
|
|
|
|
six, txaio, twisted, zope_interface, cffi, asyncio, trollius, futures,
|
|
|
|
mock, pytest
|
2017-04-26 12:30:04 +00:00
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "autobahn";
|
2018-10-24 08:42:18 +00:00
|
|
|
version = "18.10.1";
|
2017-04-26 12:30:04 +00:00
|
|
|
|
2018-06-23 13:27:58 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-10-24 08:42:18 +00:00
|
|
|
sha256 = "b5767bebd94ba13fc286604f889f208e7babc77d72d9f372d331bc14c89c5a40";
|
2017-04-26 12:30:04 +00:00
|
|
|
};
|
|
|
|
|
2018-08-31 17:11:24 +00:00
|
|
|
propagatedBuildInputs = [ six txaio twisted zope_interface cffi ] ++
|
|
|
|
(lib.optional isPy33 asyncio) ++
|
|
|
|
(lib.optionals (!isPy3k) [ trollius futures ]);
|
2017-04-26 12:30:04 +00:00
|
|
|
|
2018-08-31 17:11:24 +00:00
|
|
|
checkInputs = [ mock pytest ];
|
2017-04-26 12:30:04 +00:00
|
|
|
checkPhase = ''
|
2018-09-01 09:57:31 +00:00
|
|
|
runHook preCheck
|
2018-06-12 16:46:58 +00:00
|
|
|
USE_TWISTED=true py.test $out
|
2018-09-01 09:57:31 +00:00
|
|
|
runHook postCheck
|
2017-04-26 12:30:04 +00:00
|
|
|
'';
|
|
|
|
|
2018-08-31 17:11:24 +00:00
|
|
|
meta = with lib; {
|
2017-04-26 12:30:04 +00:00
|
|
|
description = "WebSocket and WAMP in Python for Twisted and asyncio.";
|
2018-03-25 05:04:25 +00:00
|
|
|
homepage = "https://crossbar.io/autobahn";
|
2017-04-26 12:30:04 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ nand0p ];
|
|
|
|
};
|
|
|
|
}
|