python3.pkgs.slixmpp: fix build
Also hardcode path to gnupg and correctly run tests.
This commit is contained in:
@@ -1,22 +1,30 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder, fetchurl, aiodns, pyasn1, pyasn1-modules, gnupg }:
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy3k, substituteAll, aiodns, pyasn1, pyasn1-modules, aiohttp, gnupg, nose }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "slixmpp";
|
||||
version = "1.4.1";
|
||||
|
||||
disabled = pythonOlder "3.4";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "020acd4507fd00c38835b78b5f338db60d3df840187623e0d41ab2ca89d7ae57";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace slixmpp/thirdparty/gnupg.py \
|
||||
--replace "gpgbinary='gpg'" "gpgbinary='${gnupg}/bin/gpg'"
|
||||
'';
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./hardcode-gnupg-path.patch;
|
||||
inherit gnupg;
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ aiodns pyasn1 pyasn1-modules gnupg ];
|
||||
propagatedBuildInputs = [ aiodns pyasn1 pyasn1-modules aiohttp ];
|
||||
|
||||
checkInputs = [ nose ];
|
||||
|
||||
checkPhase = ''
|
||||
nosetests --where=tests --exclude=live -i slixtest.py
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Elegant Python library for XMPP";
|
||||
|
||||
Reference in New Issue
Block a user