evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / mockupdb / default.nix
blob47ba794d0a0ba0a8797113f6755c66222c9da7cb
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pymongo,
6   pythonAtLeast,
7   pythonOlder,
8   pytestCheckHook,
9 }:
11 buildPythonPackage rec {
12   pname = "mockupdb";
13   version = "1.8.1";
14   format = "setuptools";
16   # use the removed ssl.wrap_socket function
17   disabled = pythonOlder "3.9" || pythonAtLeast "3.12";
19   src = fetchPypi {
20     inherit pname version;
21     hash = "sha256-020OW2RF/5FB400BL6K13+WJhHqh4+y413QHSWKvlE4=";
22   };
24   propagatedBuildInputs = [ pymongo ];
26   nativeCheckInputs = [ pytestCheckHook ];
28   pythonImportsCheck = [ "mockupdb" ];
30   disabledTests = [
31     # AssertionError: expected to receive Request(), got nothing
32     "test_flags"
33     "test_iteration"
34     "test_ok"
35     "test_ssl_basic"
36     "test_unix_domain_socket"
37   ];
39   meta = with lib; {
40     description = "Simulate a MongoDB server";
41     license = licenses.asl20;
42     homepage = "https://github.com/ajdavis/mongo-mockup-db";
43     maintainers = with maintainers; [ globin ];
44   };