diff options
author | Lancelot SIX <lsix@lancelotsix.com> | 2017-05-02 22:11:31 +0200 |
---|---|---|
committer | Lancelot SIX <lsix@lancelotsix.com> | 2017-05-03 22:33:04 +0200 |
commit | 1631f361433b4b1b040a59e731997e8bf4866caf (patch) | |
tree | b9b660ce12f807ed052df8dd2f46ea2b6fb45772 /pkgs/development/python-modules/autobahn/default.nix | |
parent | 8adb26319f48eec7e8af65ac1b4b726d7bd715e4 (diff) | |
download | nixlib-1631f361433b4b1b040a59e731997e8bf4866caf.tar nixlib-1631f361433b4b1b040a59e731997e8bf4866caf.tar.gz nixlib-1631f361433b4b1b040a59e731997e8bf4866caf.tar.bz2 nixlib-1631f361433b4b1b040a59e731997e8bf4866caf.tar.lz nixlib-1631f361433b4b1b040a59e731997e8bf4866caf.tar.xz nixlib-1631f361433b4b1b040a59e731997e8bf4866caf.tar.zst nixlib-1631f361433b4b1b040a59e731997e8bf4866caf.zip |
pythonPackages.autobahn: 0.18.2 -> 17.5.1
Diffstat (limited to 'pkgs/development/python-modules/autobahn/default.nix')
-rw-r--r-- | pkgs/development/python-modules/autobahn/default.nix | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/autobahn/default.nix b/pkgs/development/python-modules/autobahn/default.nix index 6230a5d149ce..b83d731c720a 100644 --- a/pkgs/development/python-modules/autobahn/default.nix +++ b/pkgs/development/python-modules/autobahn/default.nix @@ -1,21 +1,26 @@ -{ stdenv, buildPythonPackage, fetchurl, isPy3k, - unittest2, mock, pytest, trollius, pytest-asyncio, - six, twisted, txaio +{ stdenv, buildPythonPackage, fetchurl, isPy3k, isPy33, + unittest2, mock, pytest, trollius, asyncio, + pytest-asyncio, futures, + six, twisted, txaio, zope_interface }: buildPythonPackage rec { name = "${pname}-${version}"; pname = "autobahn"; - version = "0.18.2"; + version = "17.5.1"; src = fetchurl { url = "mirror://pypi/a/${pname}/${name}.tar.gz"; - sha256 = "1alp71plqnrak5nm2vn9mmkxayjb081c1kihqwf60wdpvv0w7y14"; + sha256 = "0p2xx20g0rj6pnp4h3231mn8zk4ag8msv69f93gai2hzl5vglcia"; }; - buildInputs = [ unittest2 mock pytest trollius pytest-asyncio ]; - propagatedBuildInputs = [ six twisted txaio ]; + # Upstream claim python2 support, but tests require pytest-asyncio which + # 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 = '' py.test $out ''; |