2021-09-26 12:46:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, mockupdb
|
|
|
|
, pymongo
|
|
|
|
, pythonOlder
|
2021-05-28 09:39:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "motor";
|
2021-09-26 12:46:18 +00:00
|
|
|
version = "2.5.1";
|
|
|
|
disabled = pythonOlder "3.6";
|
2021-05-28 09:39:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mongodb";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-09-26 12:46:18 +00:00
|
|
|
sha256 = "sha256-r+HyIEC+Jafn7eMqkAldsZ5hbem+n+P76RJGAymmBks=";
|
2021-05-28 09:39:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pymongo ];
|
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
checkInputs = [ mockupdb ];
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
# network connections
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|