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