1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, dnspython 6}: 7 8buildPythonPackage rec { 9 pname = "pymongo"; 10 version = "4.5.0"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-aB8lLkOz7wVMqRYWNfgbcw9NjK3Siz8rIAT1py+FOYI="; 18 }; 19 20 propagatedBuildInputs = [ 21 dnspython 22 ]; 23 24 # Tests call a running mongodb instance 25 doCheck = false; 26 27 pythonImportsCheck = [ "pymongo" ]; 28 29 meta = with lib; { 30 description = "Python driver for MongoDB"; 31 homepage = "https://github.com/mongodb/mongo-python-driver"; 32 license = licenses.asl20; 33 maintainers = with maintainers; [ ]; 34 }; 35}