3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.autobahn: 0.18.2 -> 17.5.1

This commit is contained in:
Lancelot SIX 2017-05-02 22:11:31 +02:00
parent 8adb26319f
commit 1631f36143
No known key found for this signature in database
GPG key ID: 02E1542BA66FB047

View file

@ -1,21 +1,26 @@
{ stdenv, buildPythonPackage, fetchurl, isPy3k, { stdenv, buildPythonPackage, fetchurl, isPy3k, isPy33,
unittest2, mock, pytest, trollius, pytest-asyncio, unittest2, mock, pytest, trollius, asyncio,
six, twisted, txaio pytest-asyncio, futures,
six, twisted, txaio, zope_interface
}: }:
buildPythonPackage rec { buildPythonPackage rec {
name = "${pname}-${version}"; name = "${pname}-${version}";
pname = "autobahn"; pname = "autobahn";
version = "0.18.2"; version = "17.5.1";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/a/${pname}/${name}.tar.gz"; url = "mirror://pypi/a/${pname}/${name}.tar.gz";
sha256 = "1alp71plqnrak5nm2vn9mmkxayjb081c1kihqwf60wdpvv0w7y14"; sha256 = "0p2xx20g0rj6pnp4h3231mn8zk4ag8msv69f93gai2hzl5vglcia";
}; };
buildInputs = [ unittest2 mock pytest trollius pytest-asyncio ]; # Upstream claim python2 support, but tests require pytest-asyncio which
propagatedBuildInputs = [ six twisted txaio ]; # is pythn3 only. Therefore, tests are skipped for python2.
doCheck = isPy3k;
buildInputs = stdenv.lib.optionals isPy3k [ unittest2 mock pytest pytest-asyncio ];
propagatedBuildInputs = [ six twisted zope_interface txaio ] ++
(stdenv.lib.optional isPy33 asyncio) ++
(stdenv.lib.optionals (!isPy3k) [ trollius futures ]);
disabled = !isPy3k;
checkPhase = '' checkPhase = ''
py.test $out py.test $out
''; '';