nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 44 lines 890 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pymongo, 6 pythonAtLeast, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "mockupdb"; 12 version = "1.8.1"; 13 format = "setuptools"; 14 15 # use the removed ssl.wrap_socket function 16 disabled = pythonAtLeast "3.12"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-020OW2RF/5FB400BL6K13+WJhHqh4+y413QHSWKvlE4="; 21 }; 22 23 propagatedBuildInputs = [ pymongo ]; 24 25 nativeCheckInputs = [ pytestCheckHook ]; 26 27 pythonImportsCheck = [ "mockupdb" ]; 28 29 disabledTests = [ 30 # AssertionError: expected to receive Request(), got nothing 31 "test_flags" 32 "test_iteration" 33 "test_ok" 34 "test_ssl_basic" 35 "test_unix_domain_socket" 36 ]; 37 38 meta = { 39 description = "Simulate a MongoDB server"; 40 license = lib.licenses.asl20; 41 homepage = "https://github.com/ajdavis/mongo-mockup-db"; 42 maintainers = [ ]; 43 }; 44}