Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / mongoengine / default.nix
blobc8969d9e2d4df59d9d4cc3705d3184f56bdcfc9a
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pymongo
5 , isPy27
6 , six
7 , blinker
8 , nose
9 , pillow
10 , coverage
13 buildPythonPackage rec {
14   pname = "mongoengine";
15   version = "0.22.0";
16   disabled = isPy27;
18   src = fetchFromGitHub {
19     owner = "MongoEngine";
20     repo = pname;
21     rev = "v${version}";
22     sha256 = "14n9rl8w3i1fq96f3jzsg7gy331d7fmrapva6m38ih53rnf38bdf";
23   };
25   propagatedBuildInputs = [
26     pymongo
27     six
28   ];
30   checkInputs = [
31     nose
32     pillow
33     coverage
34     blinker
35   ];
37   postPatch = ''
38     substituteInPlace setup.py \
39       --replace "coverage==4.2" "coverage"
40   '';
42   # tests require mongodb running in background
43   doCheck = false;
45   meta = with lib; {
46     description = "MongoEngine is a Python Object-Document Mapper for working with MongoDB";
47     homepage = "http://mongoengine.org/";
48     license = licenses.mit;
49     maintainers = [ maintainers.costrouc ];
50   };