2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-09-19 14:19:46 +00:00
|
|
|
hatchling,
|
|
|
|
hatch-requirements-txt,
|
2024-06-05 15:53:02 +00:00
|
|
|
mockupdb,
|
|
|
|
pymongo,
|
|
|
|
pythonOlder,
|
2021-05-28 09:39:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "motor";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "3.5.1";
|
|
|
|
pyproject = true;
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-05-28 09:39:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mongodb";
|
2024-09-19 14:19:46 +00:00
|
|
|
repo = "motor";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-mg31FzMF0xEEhfLKAdF2pzEkULESFFGaXnE0uospXqE=";
|
2021-05-28 09:39:13 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [
|
|
|
|
hatchling
|
|
|
|
hatch-requirements-txt
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [ 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
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
meta = {
|
2021-05-28 09:39:13 +00:00
|
|
|
description = "Non-blocking MongoDB driver for Tornado or asyncio";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = lib.licenses.asl20;
|
2021-05-28 09:39:13 +00:00
|
|
|
homepage = "https://github.com/mongodb/motor";
|
2024-09-19 14:19:46 +00:00
|
|
|
maintainers = with lib.maintainers; [ globin ];
|
2021-05-28 09:39:13 +00:00
|
|
|
};
|
|
|
|
}
|