3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/motor/default.nix

31 lines
674 B
Nix
Raw Normal View History

2021-05-09 16:47:03 +01:00
{ lib, buildPythonPackage, fetchFromGitHub
, pymongo, mockupdb
}:
buildPythonPackage rec {
pname = "motor";
version = "2.4.0";
src = fetchFromGitHub {
owner = "mongodb";
repo = pname;
rev = version;
sha256 = "1sgaqg98h35lazzdi015q1i60ig7krid8b10a5rm6lf755y8yj2c";
};
propagatedBuildInputs = [ pymongo ];
# network connections
doCheck = false;
checkInputs = [ mockupdb ];
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 ];
};
}