2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
2024-09-19 14:19:46 +00:00
|
|
|
hatchling,
|
|
|
|
hatch-requirements-txt,
|
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonOlder,
|
|
|
|
dnspython,
|
|
|
|
|
|
|
|
# for passthru.tests
|
|
|
|
celery, # check-input only
|
|
|
|
flask-pymongo,
|
|
|
|
kombu, # check-input only
|
|
|
|
mongoengine,
|
|
|
|
motor,
|
|
|
|
pymongo-inmemory,
|
2021-09-26 12:46:18 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pymongo";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "4.8.0";
|
|
|
|
pyproject = true;
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-09-19 14:19:46 +00:00
|
|
|
inherit version;
|
|
|
|
pname = "pymongo";
|
|
|
|
hash = "sha256-RU8ilYdXRNxw8YgeSy65nNrQCKM1dLyKrxIFMPZsDN4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [
|
|
|
|
hatchling
|
|
|
|
hatch-requirements-txt
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [ dnspython ];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# Tests call a running mongodb instance
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
pythonImportsCheck = [ "pymongo" ];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit
|
|
|
|
celery
|
|
|
|
flask-pymongo
|
|
|
|
kombu
|
|
|
|
mongoengine
|
|
|
|
motor
|
|
|
|
pymongo-inmemory
|
2024-06-05 15:53:02 +00:00
|
|
|
;
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
meta = {
|
2021-09-26 12:46:18 +00:00
|
|
|
description = "Python driver for MongoDB";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/mongodb/mongo-python-driver";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = lib.licenses.asl20;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|