pythonPackages.mongoengine: init at 0.18.2

This commit is contained in:
Chris Ostrouchov 2019-07-18 16:59:10 -04:00 committed by Ariel
parent 02bbcabecf
commit 3fb612cdc9
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,49 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pymongo
, six
, blinker
, nose
, pillow
, coverage
}:
buildPythonPackage rec {
pname = "mongoengine";
version = "0.18.2";
src = fetchFromGitHub {
owner = "MongoEngine";
repo = pname;
rev = "v${version}";
sha256 = "0gx091h9rcykdj233srrl3dfc0ly52p6r4qc9ah6z0f694kmqj1v";
};
propagatedBuildInputs = [
pymongo
six
];
checkInputs = [
nose
pillow
coverage
blinker
];
postPatch = ''
substituteInPlace setup.py \
--replace "coverage==4.2" "coverage"
'';
# tests require mongodb running in background
doCheck = false;
meta = with lib; {
description = "MongoEngine is a Python Object-Document Mapper for working with MongoDB";
homepage = http://mongoengine.org/;
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}

View File

@ -4480,6 +4480,8 @@ in {
mongodict = callPackage ../development/python-modules/mongodict { };
mongoengine = callPackage ../development/python-modules/mongoengine { };
repoze_who = callPackage ../development/python-modules/repoze_who { };
vobject = callPackage ../development/python-modules/vobject { };