Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pymongo / default.nix
blobbb6196f775a234f1f3d64b326c3139b1d4eab714
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pythonOlder
5 , dnspython
6 }:
8 buildPythonPackage rec {
9   pname = "pymongo";
10   version = "4.5.0";
11   format = "setuptools";
13   disabled = pythonOlder "3.7";
15   src = fetchPypi {
16     inherit pname version;
17     hash = "sha256-aB8lLkOz7wVMqRYWNfgbcw9NjK3Siz8rIAT1py+FOYI=";
18   };
20   propagatedBuildInputs = [
21     dnspython
22   ];
24   # Tests call a running mongodb instance
25   doCheck = false;
27   pythonImportsCheck = [ "pymongo" ];
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   };