2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
mockupdb,
|
|
|
|
pymongo,
|
|
|
|
pythonOlder,
|
2021-05-28 09:39:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "motor";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.4.0";
|
2022-10-30 15:09:59 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
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}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-Rj8eYZxmw/cn/vkhLunmHgxMMHIQe80Zhc2p0q3b/AY=";
|
2021-05-28 09:39:13 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ pymongo ];
|
2021-05-28 09:39:13 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ mockupdb ];
|
2021-09-26 12:46:18 +00:00
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
# network connections
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "motor" ];
|
2021-05-28 09:39:13 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|