nixos/java: No bashisms in `environment.shellInit` script (#294121)
[NixPkgs.git] / pkgs / development / python-modules / pymongo / default.nix
blob97487b91d90da611e4a0045c4fb26132ec12145c
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   hatchling,
6   hatch-requirements-txt,
7   setuptools,
8   pythonOlder,
9   dnspython,
11   # for passthru.tests
12   celery, # check-input only
13   flask-pymongo,
14   kombu, # check-input only
15   mongoengine,
16   motor,
17   pymongo-inmemory,
20 buildPythonPackage rec {
21   pname = "pymongo";
22   version = "4.9.1";
23   pyproject = true;
25   disabled = pythonOlder "3.7";
27   src = fetchPypi {
28     inherit version;
29     pname = "pymongo";
30     hash = "sha256-t/LTQ5Cs9g4inDADfRRz/PafRTbNf0j294wMkxxhxQU=";
31   };
33   build-system = [
34     hatchling
35     hatch-requirements-txt
36     setuptools
37   ];
39   dependencies = [ dnspython ];
41   # Tests call a running mongodb instance
42   doCheck = false;
44   pythonImportsCheck = [ "pymongo" ];
46   passthru.tests = {
47     inherit
48       celery
49       flask-pymongo
50       kombu
51       mongoengine
52       motor
53       pymongo-inmemory
54       ;
55   };
57   meta = {
58     description = "Python driver for MongoDB";
59     homepage = "https://github.com/mongodb/mongo-python-driver";
60     license = lib.licenses.asl20;
61     maintainers = [ ];
62   };