Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 791 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, packaging 5, pbr 6, pytestCheckHook 7, pythonOlder 8, sentinels 9}: 10 11buildPythonPackage rec { 12 pname = "mongomock"; 13 version = "4.1.2"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-8GzWKvuK4+9jujE0mr0iCmV+8N1PAkOilYfFIT+TG30="; 21 }; 22 23 nativeBuildInputs = [ 24 pbr 25 ]; 26 27 propagatedBuildInputs = [ 28 packaging 29 sentinels 30 ]; 31 32 nativeCheckInputs = [ 33 pytestCheckHook 34 ]; 35 36 pythonImportsCheck = [ 37 "mongomock" 38 ]; 39 40 meta = with lib; { 41 homepage = "https://github.com/mongomock/mongomock"; 42 description = "Fake pymongo stub for testing simple MongoDB-dependent code"; 43 license = licenses.bsd3; 44 maintainers = with maintainers; [ gador ]; 45 }; 46}