2021-08-21 22:47:35 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
2022-12-30 20:13:37 +01:00
|
|
|
dnspython,
|
2024-05-22 16:01:06 +02:00
|
|
|
|
2024-04-22 23:14:30 +01:00
|
|
|
# for passthru.tests
|
|
|
|
celery, # check-input only
|
|
|
|
flask-pymongo,
|
|
|
|
kombu, # check-input only
|
|
|
|
mongoengine,
|
|
|
|
motor,
|
|
|
|
pymongo-inmemory,
|
2021-08-21 22:47:35 +02:00
|
|
|
}:
|
2017-09-13 22:37:32 -04:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pymongo";
|
2024-06-19 05:07:01 +02:00
|
|
|
version = "4.7.3";
|
2022-12-30 20:13:37 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2017-09-13 22:37:32 -04:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-06-19 05:07:01 +02:00
|
|
|
hash = "sha256-Y1SmayKPLNOZvnQpaF+2jgfxkRCjZ5eC7LT9to2gODE=";
|
2017-09-13 22:37:32 -04:00
|
|
|
};
|
|
|
|
|
2022-12-30 20:13:37 +01:00
|
|
|
propagatedBuildInputs = [ dnspython ];
|
|
|
|
|
2019-01-22 11:59:03 +01:00
|
|
|
# Tests call a running mongodb instance
|
2017-09-13 22:37:32 -04:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-08-21 22:47:35 +02:00
|
|
|
pythonImportsCheck = [ "pymongo" ];
|
|
|
|
|
2024-04-22 23:14:30 +01:00
|
|
|
passthru.tests = {
|
|
|
|
inherit
|
|
|
|
celery
|
|
|
|
flask-pymongo
|
|
|
|
kombu
|
|
|
|
mongoengine
|
|
|
|
motor
|
|
|
|
pymongo-inmemory
|
|
|
|
;
|
|
|
|
};
|
|
|
|
|
2019-01-22 11:59:03 +01:00
|
|
|
meta = with lib; {
|
2021-08-21 22:47:35 +02:00
|
|
|
description = "Python driver for MongoDB";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/mongodb/mongo-python-driver";
|
2017-09-13 22:37:32 -04:00
|
|
|
license = licenses.asl20;
|
2021-08-21 22:47:35 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-09-13 22:37:32 -04:00
|
|
|
};
|
|
|
|
}
|