diff options
| author | Alma Cemerlic <Alma.Cemerlic@worldquant.com> | 2020-03-13 11:31:28 -0400 |
|---|---|---|
| committer | Jon <jonringer@users.noreply.github.com> | 2020-03-17 11:44:34 -0700 |
| commit | 34fd0c096844c0599cfdc28ef4b4de00ba69bf42 (patch) | |
| tree | 5098726578f3fea13aaf3005dc525cb5bbd774bf /pkgs/development/python-modules/imapclient/default.nix | |
| parent | http2tcp: init at 0.5 (diff) | |
| download | nixpkgs-34fd0c096844c0599cfdc28ef4b4de00ba69bf42.tar.gz | |
pythonPackages.IMAPClient: 0.13 -> 2.1.0
Diffstat (limited to 'pkgs/development/python-modules/imapclient/default.nix')
| -rw-r--r-- | pkgs/development/python-modules/imapclient/default.nix | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/imapclient/default.nix b/pkgs/development/python-modules/imapclient/default.nix index e45cdb3eab8a..ea9bc4844fad 100644 --- a/pkgs/development/python-modules/imapclient/default.nix +++ b/pkgs/development/python-modules/imapclient/default.nix @@ -1,32 +1,35 @@ { stdenv , buildPythonPackage -, fetchurl -, isPy34 -, isPy35 +, fetchFromGitHub , mock +, six }: buildPythonPackage rec { pname = "IMAPClient"; - version = "0.13"; - disabled = isPy34 || isPy35; + version = "2.1.0"; - src = fetchurl { - url = "https://freshfoo.com/projects/IMAPClient/${pname}-${version}.tar.gz"; - sha256 = "0v7kd1crdbff0rmh4ddm5qszkis6hpk9084qh94al8h7g4y9l3is"; + src = fetchFromGitHub { + owner = "mjs"; + repo = "imapclient"; + rev = version; + sha256 = "1zc8qj8ify2zygbz255b6fcg7jhprswf008ccwjmbrnj08kh9l4x"; }; - buildInputs = [ mock ]; - - preConfigure = '' - sed -i '/distribute_setup/d' setup.py - substituteInPlace setup.py --replace "mock==0.8.0" "mock" + # fix test failing in python 36 + postPatch = '' + substituteInPlace tests/test_imapclient.py \ + --replace "if sys.version_info >= (3, 7):" "if sys.version_info >= (3, 6, 4):" ''; + propagatedBuildInputs = [ six ]; + + checkInputs = [ mock ]; + meta = with stdenv.lib; { - homepage = https://imapclient.readthedocs.io/en/2.1.0/; + homepage = "https://imapclient.readthedocs.io"; description = "Easy-to-use, Pythonic and complete IMAP client library"; license = licenses.bsd3; + maintainers = [ maintainers.almac ]; }; - } |
