mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 13:44:50 +00:00
bac4d95aa2
Lots of URLs were HTTP redirect to HTTPS. Changed those and checked them if there's actual content. Inspired by https://github.com/NixOS/nixpkgs/issues/60004
33 lines
705 B
Nix
33 lines
705 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchurl
|
|
, isPy34
|
|
, isPy35
|
|
, mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "IMAPClient";
|
|
version = "0.13";
|
|
disabled = isPy34 || isPy35;
|
|
|
|
src = fetchurl {
|
|
url = "https://freshfoo.com/projects/IMAPClient/${pname}-${version}.tar.gz";
|
|
sha256 = "0v7kd1crdbff0rmh4ddm5qszkis6hpk9084qh94al8h7g4y9l3is";
|
|
};
|
|
|
|
buildInputs = [ mock ];
|
|
|
|
preConfigure = ''
|
|
sed -i '/distribute_setup/d' setup.py
|
|
substituteInPlace setup.py --replace "mock==0.8.0" "mock"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://imapclient.readthedocs.io/en/2.1.0/;
|
|
description = "Easy-to-use, Pythonic and complete IMAP client library";
|
|
license = licenses.bsd3;
|
|
};
|
|
|
|
}
|