nixpkgs/pkgs/development/python-modules/autobahn/default.nix

31 lines
824 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, isPy3k,
six, txaio, twisted, zope_interface, cffi, trollius, futures,
mock, pytest
}:
buildPythonPackage rec {
pname = "autobahn";
2019-02-14 07:37:10 +00:00
version = "19.1.1";
src = fetchPypi {
inherit pname version;
2019-02-14 07:37:10 +00:00
sha256 = "aebbadb700c13792a2967c79002855d1153b9ec8f2949d169e908388699596ff";
};
propagatedBuildInputs = [ six txaio twisted zope_interface cffi ] ++
(lib.optionals (!isPy3k) [ trollius futures ]);
checkInputs = [ mock pytest ];
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
'';
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 ];
};
}