2021-08-21 23:40:17 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-07-31 13:44:46 +00:00
|
|
|
hatchling,
|
|
|
|
hatch-requirements-txt,
|
2021-08-21 23:40:17 +00:00
|
|
|
mockupdb,
|
|
|
|
pymongo,
|
|
|
|
pythonOlder,
|
2021-05-09 15:47:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "motor";
|
2024-09-29 15:05:38 +00:00
|
|
|
version = "3.6.0";
|
2024-07-31 13:44:46 +00:00
|
|
|
pyproject = true;
|
2022-10-30 08:17:08 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-05-09 15:47:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mongodb";
|
2024-07-31 13:44:46 +00:00
|
|
|
repo = "motor";
|
2022-07-16 10:59:19 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-09-29 15:05:38 +00:00
|
|
|
hash = "sha256-fSHb39C4WaQVt7jT714kxwkpUw3mV9jNgkdUyVnD+S4=";
|
2021-05-09 15:47:03 +00:00
|
|
|
};
|
|
|
|
|
2024-07-31 13:44:46 +00:00
|
|
|
build-system = [
|
|
|
|
hatchling
|
|
|
|
hatch-requirements-txt
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [ pymongo ];
|
2021-05-09 15:47:03 +00:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ mockupdb ];
|
2021-08-21 23:40:17 +00:00
|
|
|
|
2021-05-09 15:47:03 +00:00
|
|
|
# network connections
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-10-30 08:17:08 +00:00
|
|
|
pythonImportsCheck = [ "motor" ];
|
2021-05-09 15:47:03 +00:00
|
|
|
|
2024-07-31 13:44:46 +00:00
|
|
|
meta = {
|
2021-05-09 15:47:03 +00:00
|
|
|
description = "Non-blocking MongoDB driver for Tornado or asyncio";
|
2024-07-31 13:44:46 +00:00
|
|
|
license = lib.licenses.asl20;
|
2021-05-09 15:47:03 +00:00
|
|
|
homepage = "https://github.com/mongodb/motor";
|
2024-07-31 13:44:46 +00:00
|
|
|
maintainers = with lib.maintainers; [ globin ];
|
2021-05-09 15:47:03 +00:00
|
|
|
};
|
|
|
|
}
|