From cf981d3e2b3a7761ff6f050138fc301d19c12862 Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Wed, 21 Mar 2018 04:08:42 +0300 Subject: [PATCH] python.pkgs.nbxmpp: 0.6.3 -> 0.6.4 --- .../python-modules/nbxmpp/default.nix | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/nbxmpp/default.nix b/pkgs/development/python-modules/nbxmpp/default.nix index 295354003baf..b6f94536e2fa 100644 --- a/pkgs/development/python-modules/nbxmpp/default.nix +++ b/pkgs/development/python-modules/nbxmpp/default.nix @@ -1,17 +1,30 @@ -{ stdenv, buildPythonPackage, fetchPypi }: +{ stdenv, buildPythonPackage, fetchzip, pyopenssl }: buildPythonPackage rec { pname = "nbxmpp"; - version = "0.6.3"; + version = "0.6.4"; + name = "${pname}-${version}"; - src = fetchPypi { - inherit pname version; - sha256 = "dd66e701a4856e3cace8f4865837ccc9bcfcdb286df01f01aa19531f5d834a83"; + # Tests aren't included in PyPI tarball. + src = fetchzip { + name = "${name}.tar.bz2"; + url = "https://dev.gajim.org/gajim/python-nbxmpp/repository/archive.tar.bz2?" + + "ref=${name}"; + sha256 = "0mikgksf01w82wnnm0phmzkijk2c93g24fzd59s71n3zy7f7dx3l"; }; + propagatedBuildInputs = [ pyopenssl ]; + + checkPhase = '' + # Disable tests requiring networking + echo "" > test/unit/test_xmpp_transports_nb2.py + python test/runtests.py + ''; + meta = with stdenv.lib; { homepage = "https://dev.gajim.org/gajim/python-nbxmpp"; description = "Non-blocking Jabber/XMPP module"; license = licenses.gpl3; + maintainers = with maintainers; [ abbradar ]; }; }