about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/networking/instant-messengers/poezio/default.nix
blob: b5fa1ccc2f41b7bed10d14f756c1d8e99ca54b34 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, buildPythonApplication, fetchurl, pythonOlder
, pytest, aiodns, slixmpp, pyinotify, potr, mpd2, cffi, pkgconfig }:
buildPythonApplication rec {
    name = "poezio-${version}";
    version = "0.12";

    disabled = pythonOlder "3.4";

    buildInputs = [ pytest ];
    propagatedBuildInputs = [ aiodns slixmpp pyinotify potr mpd2 cffi ];
    nativeBuildInputs = [ pkgconfig ];

    src = fetchurl {
      url = "http://dev.louiz.org/attachments/download/129/${name}.tar.gz";
      sha256 = "11n9x82xyjwbqk28lsfnvqwn8qc9flv6w2c64camh6j3148ykpvz";
    };

    checkPhase = ''
      py.test
    '';

    meta = with lib; {
      description = "Free console XMPP client";
      homepage = https://poez.io;
      license = licenses.mit;
      maintainers = [ maintainers.lsix ];
    };
  }