python3.pkgs.motor: init at 2.4.0

This commit is contained in:
Robin Gloster 2021-05-09 10:47:03 -05:00
parent 5b1d109540
commit e9ca610027
No known key found for this signature in database
GPG Key ID: D5C458DF6DD97EDF
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,30 @@
{ lib, buildPythonPackage, fetchFromGitHub
, pymongo, mockupdb
}:
buildPythonPackage rec {
pname = "motor";
version = "2.4.0";
src = fetchFromGitHub {
owner = "mongodb";
repo = pname;
rev = version;
sha256 = "1sgaqg98h35lazzdi015q1i60ig7krid8b10a5rm6lf755y8yj2c";
};
propagatedBuildInputs = [ pymongo ];
# network connections
doCheck = false;
checkInputs = [ mockupdb ];
pythonImportsCheck = [ "motor" ];
meta = with lib; {
description = "Non-blocking MongoDB driver for Tornado or asyncio";
license = licenses.asl20;
homepage = "https://github.com/mongodb/motor";
maintainers = with maintainers; [ globin ];
};
}

View File

@ -4272,6 +4272,8 @@ in {
moto = callPackage ../development/python-modules/moto { };
motor = callPackage ../development/python-modules/motor { };
moviepy = callPackage ../development/python-modules/moviepy { };
mox3 = callPackage ../development/python-modules/mox3 { };