Merge pull request #128104 from dotlambda/imaplib2-3.6
python3Packages.imaplib2: 2.45.0 -> 3.6
This commit is contained in:
commit
82b93ba640
1 changed files with 21 additions and 10 deletions
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue