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