2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
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-07-27 06:49:29 +00:00
|
|
|
version = "4.7.3";
|
2023-01-20 10:41:00 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-Y1SmayKPLNOZvnQpaF+2jgfxkRCjZ5eC7LT9to2gODE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ 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
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
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";
|
|
|
|
license = licenses.asl20;
|
2021-09-26 12:46:18 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|