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