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";
|
2020-12-15 06:35:28 +00:00
|
|
|
version = "0.22.0";
|
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}";
|
2020-12-15 06:35:28 +00:00
|
|
|
sha256 = "14n9rl8w3i1fq96f3jzsg7gy331d7fmrapva6m38ih53rnf38bdf";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|