2019-03-19 09:51:26 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k,
|
|
|
|
six, txaio, twisted, zope_interface, cffi, trollius, futures,
|
2019-08-18 10:08:15 +02:00
|
|
|
mock, pytest, cryptography, pynacl
|
2017-04-26 14:30:04 +02:00
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "autobahn";
|
2019-12-19 20:31:05 +01:00
|
|
|
version = "19.11.1";
|
2017-04-26 14:30:04 +02:00
|
|
|
|
2018-06-23 15:27:58 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 20:31:05 +01:00
|
|
|
sha256 = "201b9879b49c6e259d4126dbafe9e3c73807de0c242d50065fbebc62c6ccb181";
|
2017-04-26 14:30:04 +02:00
|
|
|
};
|
|
|
|
|
2019-08-18 10:08:15 +02:00
|
|
|
propagatedBuildInputs = [ six txaio twisted zope_interface cffi cryptography pynacl ] ++
|
2018-08-31 19:11:24 +02:00
|
|
|
(lib.optionals (!isPy3k) [ trollius futures ]);
|
2017-04-26 14:30:04 +02:00
|
|
|
|
2018-08-31 19:11:24 +02:00
|
|
|
checkInputs = [ mock pytest ];
|
2017-04-26 14:30:04 +02:00
|
|
|
checkPhase = ''
|
2018-09-01 11:57:31 +02:00
|
|
|
runHook preCheck
|
2018-06-12 18:46:58 +02:00
|
|
|
USE_TWISTED=true py.test $out
|
2018-09-01 11:57:31 +02:00
|
|
|
runHook postCheck
|
2017-04-26 14:30:04 +02:00
|
|
|
'';
|
|
|
|
|
2019-08-18 10:08:15 +02:00
|
|
|
# Tests do no seem to be compatible yet with pytest 5.1
|
|
|
|
# https://github.com/crossbario/autobahn-python/issues/1235
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-08-31 19:11:24 +02:00
|
|
|
meta = with lib; {
|
2017-04-26 14:30:04 +02:00
|
|
|
description = "WebSocket and WAMP in Python for Twisted and asyncio.";
|
2018-03-25 07:04:25 +02:00
|
|
|
homepage = "https://crossbar.io/autobahn";
|
2017-04-26 14:30:04 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ nand0p ];
|
|
|
|
};
|
|
|
|
}
|