depot/third_party/nixpkgs/pkgs/development/python-modules/motor/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

36 lines
738 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, mockupdb
, pymongo
, pythonOlder
}:
buildPythonPackage rec {
pname = "motor";
version = "3.0.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "mongodb";
repo = pname;
rev = "refs/tags/${version}";
sha256 = "sha256-xq3EpTncnMskn3aJdLAtD/kKhn/cS2nrLrVliyh2z28=";
};
propagatedBuildInputs = [ pymongo ];
checkInputs = [ 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 ];
};
}