Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 55 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{ lib, buildPythonPackage, fetchFromGitHub, pymongo, isPy27, six, blinker, nose, pillow, coverage}:
buildPythonPackage rec { pname = "mongoengine"; version = "0.27.0"; format = "setuptools"; disabled = isPy27;
src = fetchFromGitHub { owner = "MongoEngine"; repo = pname; rev = "refs/tags/v${version}"; hash = "sha256-UCd7RpsSNDKh3vgVRYrFYWYVLQuK7WI0n/Moukhq5dM="; };
propagatedBuildInputs = [ pymongo six ];
nativeCheckInputs = [ nose 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 = with lib; { description = "MongoEngine is a Python Object-Document Mapper for working with MongoDB"; homepage = "http://mongoengine.org/"; license = licenses.mit; maintainers = [ ]; };}