nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 45 lines 863 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 hatch-vcs, 6 hatchling, 7 packaging, 8 pytestCheckHook, 9 pytz, 10 sentinels, 11}: 12 13buildPythonPackage rec { 14 pname = "mongomock"; 15 version = "4.3.0"; 16 pyproject = true; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-MmZ7eQZvq8EtTxfxao/XNhtfRDUgizujLCJuUiEqjDA="; 21 }; 22 23 build-system = [ 24 hatch-vcs 25 hatchling 26 ]; 27 28 dependencies = [ 29 packaging 30 pytz 31 sentinels 32 ]; 33 34 nativeCheckInputs = [ pytestCheckHook ]; 35 36 pythonImportsCheck = [ "mongomock" ]; 37 38 meta = { 39 description = "Fake pymongo stub for testing simple MongoDB-dependent code"; 40 homepage = "https://github.com/mongomock/mongomock"; 41 changelog = "https://github.com/mongomock/mongomock/blob/${version}/CHANGELOG.md"; 42 license = lib.licenses.bsd3; 43 maintainers = with lib.maintainers; [ gador ]; 44 }; 45}