about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/networking/instant-messengers/poezio/default.nix
blob: 31c9fb4e7c3fb0adf304920dedf15bf7e76ba5e3 (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
29
30
{ lib, buildPythonApplication, fetchFromGitHub, pythonOlder
, pytest, aiodns, slixmpp, pyinotify, potr, mpd2, cffi, pkgconfig }:
buildPythonApplication rec {
    pname = "poezio";
    version = "0.12.1";

    disabled = pythonOlder "3.4";

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

    src = fetchFromGitHub {
      owner = pname;
      repo = pname;
      rev = "v${version}";
      sha256 = "04qnsr0l12i55k6xl4q4akx317gai9wv5f1wpkfkq01wp181i5ll";
    };

    checkPhase = ''
      pytest
    '';

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