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