1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 isPy3k,
6 unittestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "emailthreads";
11 version = "0.1.3";
12 format = "setuptools";
13 disabled = !isPy3k;
14
15 # pypi is missing files for tests
16 src = fetchFromGitHub {
17 owner = "emersion";
18 repo = "python-emailthreads";
19 rev = "v${version}";
20 hash = "sha256-7BhYS1DQCW9QpG31asPCq5qPyJy+WW2onZpvEHhwQCs=";
21 };
22
23 nativeCheckInputs = [ unittestCheckHook ];
24
25 PKGVER = version;
26
27 meta = with lib; {
28 homepage = "https://github.com/emersion/python-emailthreads";
29 description = "Python library to parse and format email threads";
30 license = licenses.mit;
31 maintainers = with maintainers; [ eadwu ];
32 };
33}