nixpkgs-suyu/pkgs/development/python-modules/slixmpp/default.nix
2018-10-18 11:02:23 +02:00

26 lines
693 B
Nix

{ lib, buildPythonPackage, fetchPypi, pythonOlder, fetchurl, aiodns, pyasn1, pyasn1-modules, gnupg }:
buildPythonPackage rec {
pname = "slixmpp";
version = "1.4.0";
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
sha256 = "155qxx4xlkkjb4hphc09nsi2mi4xi3m2akg0z7064kj3nbzkwjn2";
};
patchPhase = ''
substituteInPlace slixmpp/thirdparty/gnupg.py \
--replace "gpgbinary='gpg'" "gpgbinary='${gnupg}/bin/gpg'"
'';
propagatedBuildInputs = [ aiodns pyasn1 pyasn1-modules gnupg ];
meta = {
description = "Elegant Python library for XMPP";
license = lib.licenses.mit;
homepage = https://dev.louiz.org/projects/slixmpp;
};
}