summary refs log tree commit diff
path: root/pkgs/development/python-modules/emailthreads/default.nix
blob: 3daaf1577e6896150152eebf1d2db39f5860a38f (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
{ lib, fetchFromGitHub, buildPythonPackage
, python, isPy3k, unittestCheckHook }:

buildPythonPackage rec {
  pname = "emailthreads";
  version = "0.1.3";
  disabled = !isPy3k;

  # pypi is missing files for tests
  src = fetchFromGitHub {
    owner = "emersion";
    repo = "python-emailthreads";
    rev = "v${version}";
    sha256 = "sha256-7BhYS1DQCW9QpG31asPCq5qPyJy+WW2onZpvEHhwQCs=";
  };

  checkInputs = [ unittestCheckHook ];

  PKGVER = version;

  meta = with lib; {
    homepage = "https://github.com/emersion/python-emailthreads";
    description = "Python library to parse and format email threads";
    license = licenses.mit;
    maintainers = with maintainers; [ eadwu ];
  };
}