depot/third_party/nixpkgs/pkgs/development/python-modules/pymongo/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

35 lines
674 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, dnspython
}:
buildPythonPackage rec {
pname = "pymongo";
version = "4.5.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-aB8lLkOz7wVMqRYWNfgbcw9NjK3Siz8rIAT1py+FOYI=";
};
propagatedBuildInputs = [
dnspython
];
# Tests call a running mongodb instance
doCheck = false;
pythonImportsCheck = [ "pymongo" ];
meta = with lib; {
description = "Python driver for MongoDB";
homepage = "https://github.com/mongodb/mongo-python-driver";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}