3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/autobahn/default.nix

35 lines
1,007 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, isPy3k,
six, txaio, twisted, zope_interface, cffi, trollius, futures,
2019-08-18 09:08:15 +01:00
mock, pytest, cryptography, pynacl
}:
buildPythonPackage rec {
pname = "autobahn";
2019-12-19 19:31:05 +00:00
version = "19.11.1";
src = fetchPypi {
inherit pname version;
2019-12-19 19:31:05 +00:00
sha256 = "201b9879b49c6e259d4126dbafe9e3c73807de0c242d50065fbebc62c6ccb181";
};
2019-08-18 09:08:15 +01:00
propagatedBuildInputs = [ six txaio twisted zope_interface cffi cryptography pynacl ] ++
(lib.optionals (!isPy3k) [ trollius futures ]);
checkInputs = [ mock pytest ];
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
'';
2019-08-18 09:08:15 +01:00
# Tests do no seem to be compatible yet with pytest 5.1
# https://github.com/crossbario/autobahn-python/issues/1235
doCheck = false;
meta = with lib; {
description = "WebSocket and WAMP in Python for Twisted and asyncio.";
homepage = "https://crossbar.io/autobahn";
license = licenses.mit;
maintainers = with maintainers; [ nand0p ];
};
}