1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-23 07:26:54 +00:00
nixpkgs/pkgs/development/python-modules/autobahn/default.nix
Robert Schütz a4a61777e8 python.pkgs.asyncio: remove
> This version is only relevant for Python 3.3,
> which does not include asyncio in its stdlib.
We don't ship 3.3 anymore.
2019-03-19 10:11:23 +01:00

31 lines
824 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPy3k,
six, txaio, twisted, zope_interface, cffi, trollius, futures,
mock, pytest
}:
buildPythonPackage rec {
pname = "autobahn";
version = "19.1.1";
src = fetchPypi {
inherit pname version;
sha256 = "aebbadb700c13792a2967c79002855d1153b9ec8f2949d169e908388699596ff";
};
propagatedBuildInputs = [ six txaio twisted zope_interface cffi ] ++
(lib.optionals (!isPy3k) [ trollius futures ]);
checkInputs = [ mock pytest ];
checkPhase = ''
runHook preCheck
USE_TWISTED=true py.test $out
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 ];
};
}