python3Packages.mongomock: init at 3.23.0

This commit is contained in:
florian on nixos (Florian Brandes) 2022-01-17 22:05:15 +01:00 committed by Sandro Jäckel
parent ba7c4fa91d
commit e1fb406399
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5
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

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