2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage
|
2022-09-09 14:08:57 +00:00
|
|
|
, python, isPy3k, unittestCheckHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "emailthreads";
|
2021-07-04 02:40:35 +00:00
|
|
|
version = "0.1.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
# pypi is missing files for tests
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "emersion";
|
|
|
|
repo = "python-emailthreads";
|
|
|
|
rev = "v${version}";
|
2021-07-04 02:40:35 +00:00
|
|
|
sha256 = "sha256-7BhYS1DQCW9QpG31asPCq5qPyJy+WW2onZpvEHhwQCs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
checkInputs = [ unittestCheckHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
PKGVER = version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|