depot/third_party/nixpkgs/pkgs/development/python-modules/slixmpp/default.nix
Default email 4fc29cb41f Project import generated by Copybara.
GitOrigin-RevId: 135073a87b7e2c631739f4ffa016e1859b1a425e
2020-05-29 08:06:01 +02:00

34 lines
780 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPy3k, substituteAll, aiodns, pyasn1, pyasn1-modules, aiohttp, gnupg, nose }:
buildPythonPackage rec {
pname = "slixmpp";
version = "1.5.2";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "0c5g4r5c6zm5fgvk6dd0dbx9gl3ws2swajc5knlacnpfykwzp5b4";
};
patches = [
(substituteAll {
src = ./hardcode-gnupg-path.patch;
inherit 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";
license = lib.licenses.mit;
homepage = "https://dev.louiz.org/projects/slixmpp";
};
}