Merge pull request #128104 from dotlambda/imaplib2-3.6

python3Packages.imaplib2: 2.45.0 -> 3.6
This commit is contained in:
Sandro 2021-06-25 19:22:38 +02:00 committed by GitHub
commit 82b93ba640
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,22 +1,33 @@
{ lib, buildPythonPackage, fetchPypi }:
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "imaplib2";
version = "2.45.0";
version = "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "a35b6d88258696e80aabecfb784e08730b8558fcaaa3061ff2c7f8637afbd0b3";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "jazzband";
repo = "imaplib2";
rev = "v${version}";
sha256 = "14asi3xnvf4bb394k5j8c3by6svvmrr75pawzy6kaax5jx0h793m";
};
# No tests on PyPI and no tags on GitHub :(
doCheck = false;
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "imaplib2" ];
meta = with lib; {
description = "A threaded Python IMAP4 client";
homepage = "https://github.com/bcoe/imaplib2";
# See https://github.com/bcoe/imaplib2/issues/25
license = licenses.psfl;
homepage = "https://github.com/jazzband/imaplib2";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}