e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
35 lines
674 B
Nix
35 lines
674 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, dnspython
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pymongo";
|
|
version = "4.6.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-Mdqx8+HQzdV+jfAbZF9S1DzBtlPtOv1TXSiR9PxPlxI=";
|
|
};
|
|
|
|
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; [ ];
|
|
};
|
|
}
|