fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
39 lines
776 B
Nix
39 lines
776 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
mockupdb,
|
|
pymongo,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "motor";
|
|
version = "3.4.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mongodb";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-Rj8eYZxmw/cn/vkhLunmHgxMMHIQe80Zhc2p0q3b/AY=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|