mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
pythonPackages.mongoengine: init at 0.18.2
This commit is contained in:
parent
02bbcabecf
commit
3fb612cdc9
49
pkgs/development/python-modules/mongoengine/default.nix
Normal file
49
pkgs/development/python-modules/mongoengine/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user