Merge pull request #155419 from gador/add-mongomock

This commit is contained in:
Sandro 2022-01-18 20:57:56 +01:00 committed by GitHub
commit 42d3974dbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, fetchPypi
, pbr
, sentinels
, six
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "mongomock";
version = "3.23.0";
src = fetchPypi {
inherit pname version;
sha256 = "1pdh4pj5n6dsaqy98q40wig5y6imfs1p043cgkaaw8f2hxy5x56r";
};
nativeBuildInputs = [
pbr
];
propagatedBuildInputs = [
sentinels
six
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "mongomock" ];
meta = with lib; {
homepage = "https://github.com/mongomock/mongomock";
description = "Fake pymongo stub for testing simple MongoDB-dependent code";
license = licenses.bsd3;
maintainers = with maintainers; [ gador ];
};
}

View file

@ -5068,6 +5068,8 @@ in {
mohawk = callPackage ../development/python-modules/mohawk { };
mongomock = callPackage ../development/python-modules/mongomock { };
mongodict = callPackage ../development/python-modules/mongodict { };
mongoengine = callPackage ../development/python-modules/mongoengine { };