1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pymongo 5, isPy27 6, six 7, blinker 8, nose 9, pillow 10, coverage 11}: 12 13buildPythonPackage rec { 14 pname = "mongoengine"; 15 version = "0.23.1"; 16 disabled = isPy27; 17 18 src = fetchFromGitHub { 19 owner = "MongoEngine"; 20 repo = pname; 21 rev = "v${version}"; 22 sha256 = "1lj33pgdrp4rvjzcg2glvz1f87np1pfnqhlwbdcijav9rxqc0w70"; 23 }; 24 25 propagatedBuildInputs = [ 26 pymongo 27 six 28 ]; 29 30 checkInputs = [ 31 nose 32 pillow 33 coverage 34 blinker 35 ]; 36 37 postPatch = '' 38 substituteInPlace setup.py \ 39 --replace "coverage==4.2" "coverage" 40 ''; 41 42 # tests require mongodb running in background 43 doCheck = false; 44 45 meta = with lib; { 46 description = "MongoEngine is a Python Object-Document Mapper for working with MongoDB"; 47 homepage = "http://mongoengine.org/"; 48 license = licenses.mit; 49 maintainers = [ maintainers.costrouc ]; 50 }; 51}