depot/third_party/nixpkgs/pkgs/development/python-modules/motor/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

44 lines
786 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, mockupdb
, pymongo
, pythonOlder
}:
buildPythonPackage rec {
pname = "motor";
version = "3.3.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mongodb";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-ajlZleaaq0LIEW5PdTRQWL312guYA+7+x1xtPNKZQC0=";
};
propagatedBuildInputs = [
pymongo
];
nativeCheckInputs = [
mockupdb
];
# network connections
doCheck = false;
pythonImportsCheck = [
"motor"
];
meta = with lib; {
description = "Non-blocking MongoDB driver for Tornado or asyncio";
license = licenses.asl20;
homepage = "https://github.com/mongodb/motor";
maintainers = with maintainers; [ globin ];
};
}