Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 780 B view raw
1{ lib, buildPythonPackage, fetchPypi, isPy3k, substituteAll, aiodns, pyasn1, pyasn1-modules, aiohttp, gnupg, nose }: 2 3buildPythonPackage rec { 4 pname = "slixmpp"; 5 version = "1.5.2"; 6 7 disabled = !isPy3k; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "0c5g4r5c6zm5fgvk6dd0dbx9gl3ws2swajc5knlacnpfykwzp5b4"; 12 }; 13 14 patches = [ 15 (substituteAll { 16 src = ./hardcode-gnupg-path.patch; 17 inherit gnupg; 18 }) 19 ]; 20 21 propagatedBuildInputs = [ aiodns pyasn1 pyasn1-modules aiohttp ]; 22 23 checkInputs = [ nose ]; 24 25 checkPhase = '' 26 nosetests --where=tests --exclude=live -i slixtest.py 27 ''; 28 29 meta = { 30 description = "Elegant Python library for XMPP"; 31 license = lib.licenses.mit; 32 homepage = "https://dev.louiz.org/projects/slixmpp"; 33 }; 34}