Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 46 lines 867 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 hatch-requirements-txt, 7 mockupdb, 8 pymongo, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "motor"; 14 version = "3.6.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "mongodb"; 21 repo = "motor"; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-fSHb39C4WaQVt7jT714kxwkpUw3mV9jNgkdUyVnD+S4="; 24 }; 25 26 build-system = [ 27 hatchling 28 hatch-requirements-txt 29 ]; 30 31 dependencies = [ pymongo ]; 32 33 nativeCheckInputs = [ mockupdb ]; 34 35 # network connections 36 doCheck = false; 37 38 pythonImportsCheck = [ "motor" ]; 39 40 meta = { 41 description = "Non-blocking MongoDB driver for Tornado or asyncio"; 42 license = lib.licenses.asl20; 43 homepage = "https://github.com/mongodb/motor"; 44 maintainers = with lib.maintainers; [ globin ]; 45 }; 46}