Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ lib, buildPythonPackage, fetchFromGitHub, pymongo, six, blinker, pytestCheckHook, pillow, coverage,}:
buildPythonPackage rec { pname = "mongoengine"; version = "0.29.1"; format = "setuptools";
src = fetchFromGitHub { owner = "MongoEngine"; repo = "mongoengine"; tag = "v${version}"; hash = "sha256-trWCKmCa+q+qtzF0HKCZMnko1cvvpwJvczLFuKtB83E="; };
propagatedBuildInputs = [ pymongo six ];
nativeCheckInputs = [ pytestCheckHook pillow coverage blinker ];
postPatch = '' substituteInPlace setup.py \ --replace "coverage==4.2" "coverage" \ --replace "pymongo>=3.4,<=4.0" "pymongo" '';
# tests require mongodb running in background doCheck = false;
pythonImportsCheck = [ "mongoengine" ];
meta = { description = "MongoEngine is a Python Object-Document Mapper for working with MongoDB"; homepage = "http://mongoengine.org/"; license = lib.licenses.mit; maintainers = [ ]; };}