2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
35 lines
674 B
Nix
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; [ ];
|
|
};
|
|
}
|