2021-09-26 12:46:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pymongo";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "4.2.0";
|
2021-09-26 12:46:18 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-09-30 11:47:45 +00:00
|
|
|
sha256 = "sha256-cvM49qq9N9NDvZ0f3T3pIRBNOVdmvMXNxAOeTC3Zd2Y=";
|
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" ];
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|