2021-09-26 12:46:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
2023-01-20 10:41:00 +00:00
|
|
|
, dnspython
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
# 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-05-15 15:35:15 +00:00
|
|
|
version = "4.6.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-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-QAB0CQuaYx8SC0LGGyIv10NJDBM6XS+ZwCCM78zMlk4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
dnspython
|
|
|
|
];
|
|
|
|
|
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
|
|
|
|
;
|
|
|
|
};
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|