mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-31 17:19:58 +00:00
51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "imapclient";
|
|
version = "4.1.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mjs";
|
|
repo = "imapclient";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-ISlu27FRFHNvPaMyvtCY3izwYDx9Vd5BXTWjklZ5+ZE=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
preCheck = ''
|
|
# NIX_SSL_CERT_FILE is set to an invalid path (/no-cert-file.crt)
|
|
# by default and overrides SSL_CERT_FILE when it's set. This
|
|
# results in the tests relying on modifying SSL_CERT_FILE failing.
|
|
unset NIX_SSL_CERT_FILE
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"imapclient"
|
|
"imapclient.response_types"
|
|
"imapclient.exceptions"
|
|
"imapclient.testable_imapclient"
|
|
"imapclient.tls"
|
|
];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/mjs/imapclient/releases/tag/${finalAttrs.src.tag}";
|
|
homepage = "https://imapclient.readthedocs.io";
|
|
description = "Easy-to-use, Pythonic and complete IMAP client library";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [
|
|
almac
|
|
dotlambda
|
|
];
|
|
};
|
|
})
|