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";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "3.0.0";
|
2021-09-26 12:46:18 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2021-05-28 09:39:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mongodb";
|
|
|
|
repo = pname;
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
sha256 = "sha256-xq3EpTncnMskn3aJdLAtD/kKhn/cS2nrLrVliyh2z28=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|