1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-28 12:06:38 +03:00
nixpkgs/pkgs/development/python-modules/pymongo/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
962 B
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
dnspython,
2024-05-22 16:01:06 +02:00
# for passthru.tests
celery, # check-input only
flask-pymongo,
kombu, # check-input only
mongoengine,
motor,
pymongo-inmemory,
}:
2017-09-13 22:37:32 -04:00
buildPythonPackage rec {
pname = "pymongo";
version = "4.7.3";
format = "setuptools";
disabled = pythonOlder "3.7";
2017-09-13 22:37:32 -04:00
src = fetchPypi {
inherit pname version;
hash = "sha256-Y1SmayKPLNOZvnQpaF+2jgfxkRCjZ5eC7LT9to2gODE=";
2017-09-13 22:37:32 -04:00
};
propagatedBuildInputs = [ dnspython ];
# Tests call a running mongodb instance
2017-09-13 22:37:32 -04:00
doCheck = false;
pythonImportsCheck = [ "pymongo" ];
passthru.tests = {
inherit
celery
flask-pymongo
kombu
mongoengine
motor
pymongo-inmemory
;
};
meta = with lib; {
description = "Python driver for MongoDB";
homepage = "https://github.com/mongodb/mongo-python-driver";
2017-09-13 22:37:32 -04:00
license = licenses.asl20;
maintainers = with maintainers; [ ];
2017-09-13 22:37:32 -04:00
};
}