2019-07-18 21:59:10 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pymongo
|
2020-10-16 16:49:12 +01:00
|
|
|
, isPy27
|
2019-07-18 21:59:10 +01:00
|
|
|
, six
|
|
|
|
, blinker
|
|
|
|
, nose
|
|
|
|
, pillow
|
|
|
|
, coverage
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mongoengine";
|
2021-06-19 02:39:09 +01:00
|
|
|
version = "0.23.1";
|
2020-10-16 16:49:12 +01:00
|
|
|
disabled = isPy27;
|
2019-07-18 21:59:10 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MongoEngine";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-06-19 02:39:09 +01:00
|
|
|
sha256 = "1lj33pgdrp4rvjzcg2glvz1f87np1pfnqhlwbdcijav9rxqc0w70";
|
2019-07-18 21:59:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://mongoengine.org/";
|
2019-07-18 21:59:10 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|