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

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

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

  PKGVER = version;

  checkPhase = ''
    ${python.interpreter} -m unittest discover test
  '';

  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 ];
  };
}