@@ -1,35 +1,30 @@
11{ lib
22, buildPythonPackage
33, fetchFromGitHub
4−, mock
54, six
5+, pytestCheckHook
6+, mock
67}:
78
89buildPythonPackage rec {
910 pname = "IMAPClient";
10− version = "2.1.0";
11+ version = "2.2.0";
1112
1213 src = fetchFromGitHub {
1314 owner = "mjs";
1415 repo = "imapclient";
1516 rev = version;
16− sha256 = "1zc8qj8ify2zygbz255b6fcg7jhprswf008ccwjmbrnj08kh9l4x";
17+ sha256 = "sha256-q/8LFKHgrY3pQV7Coz+5pZAw696uABMTEkYoli6C2KA=";
1718 };
1819
19− # fix test failing in python 36
20− postPatch = ''
21− substituteInPlace tests/test_imapclient.py \
22− --replace "if sys.version_info >= (3, 7):" "if sys.version_info >= (3, 6, 4):"
23− '';
24−
2520 propagatedBuildInputs = [ six ];
2621
27− checkInputs = [ mock ];
22+ checkInputs = [ pytestCheckHook mock ];
2823
2924 meta = with lib; {
3025 homepage = "https://imapclient.readthedocs.io";
3126 description = "Easy-to-use, Pythonic and complete IMAP client library";
3227 license = licenses.bsd3;
33− maintainers = [ maintainers.almac ];
28+ maintainers = with maintainers; [ almac dotlambda ];
3429 };
3530}