1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 09:02:46 +00:00

slixmpp: move out of python-modules, use gnupg

This commit is contained in:
Linus Heckemann 2018-10-16 17:29:24 +02:00
parent e83b15c1b1
commit a420be1e79
2 changed files with 26 additions and 24 deletions

View file

@ -0,0 +1,25 @@
{ lib, buildPythonPackage, pythonOlder, fetchurl, aiodns, pyasn1, pyasn1-modules, gnupg }:
buildPythonPackage rec {
name = "slixmpp-${version}";
version = "1.4.0";
disabled = pythonOlder "3.4";
src = fetchurl {
url = "mirror://pypi/s/slixmpp/${name}.tar.gz";
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;
};
}

View file

@ -7999,30 +7999,7 @@ in {
};
};
slixmpp = buildPythonPackage rec {
name = "slixmpp-${version}";
version = "1.4.0";
disabled = pythonOlder "3.4";
src = pkgs.fetchurl {
url = "mirror://pypi/s/slixmpp/${name}.tar.gz";
sha256 = "155qxx4xlkkjb4hphc09nsi2mi4xi3m2akg0z7064kj3nbzkwjn2";
};
patchPhase = ''
substituteInPlace slixmpp/thirdparty/gnupg.py \
--replace "gpgbinary='gpg'" "gpgbinary='${pkgs.gnupg1}/bin/gpg'"
'';
propagatedBuildInputs = with self ; [ aiodns pyasn1 pkgs.gnupg1 pyasn1-modules];
meta = {
description = "Elegant Python library for XMPP";
license = licenses.mit;
homepage = https://dev.louiz.org/projects/slixmpp;
};
};
slixmpp = callPackage ../development/python-modules/slixmpp {};
netaddr = buildPythonPackage rec {
pname = "netaddr";