Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, buildPythonPackage 3, fetchurl 4, isPy34 5, isPy35 6, mock 7}: 8 9buildPythonPackage rec { 10 pname = "IMAPClient"; 11 version = "0.13"; 12 disabled = isPy34 || isPy35; 13 14 src = fetchurl { 15 url = "http://freshfoo.com/projects/IMAPClient/${pname}-${version}.tar.gz"; 16 sha256 = "0v7kd1crdbff0rmh4ddm5qszkis6hpk9084qh94al8h7g4y9l3is"; 17 }; 18 19 buildInputs = [ mock ]; 20 21 preConfigure = '' 22 sed -i '/distribute_setup/d' setup.py 23 substituteInPlace setup.py --replace "mock==0.8.0" "mock" 24 ''; 25 26 meta = with stdenv.lib; { 27 homepage = http://imapclient.freshfoo.com/; 28 description = "Easy-to-use, Pythonic and complete IMAP client library"; 29 license = licenses.bsd3; 30 }; 31 32}