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-11-21 06:49:06 +00:00
|
|
|
version = "0.21.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-11-21 06:49:06 +00:00
|
|
|
sha256 = "02amfdirdw3nc0kgiyax7yndk5b65g83kbjvwwxbgnlcrb9vjzcd";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|