mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
52 lines
902 B
Nix
52 lines
902 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pymongo
|
|
, isPy27
|
|
, six
|
|
, blinker
|
|
, nose
|
|
, pillow
|
|
, coverage
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mongoengine";
|
|
version = "0.22.0";
|
|
disabled = isPy27;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MongoEngine";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "14n9rl8w3i1fq96f3jzsg7gy331d7fmrapva6m38ih53rnf38bdf";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|