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