Unverified Commit 0a471a0b authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #199600 from fabaff/mockupdb-fix

python310Packages.mockupdb: switch to pytestCheckHook
parents fcb005f9 0411577c
Loading
Loading
Loading
Loading
+28 −4
Original line number Diff line number Diff line
{ lib, buildPythonPackage, fetchPypi
{ lib
, buildPythonPackage
, fetchPypi
, pymongo
, pythonOlder
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "mockupdb";
  version = "1.8.1";
  format = "setuptools";

  disabled = pythonOlder "3.9";

  src = fetchPypi {
    inherit pname version;
    sha256 = "d36d0e5b6445ff9141e34d012fa2b5dfe589847aa1e3ecb8d774074962af944e";
    hash = "sha256-020OW2RF/5FB400BL6K13+WJhHqh4+y413QHSWKvlE4=";
  };

  propagatedBuildInputs = [ pymongo ];
  propagatedBuildInputs = [
    pymongo
  ];

  checkInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "mockupdb"
  ];

  pythonImportsCheck = [ "mockupdb" ];
  disabledTests = [
    # AssertionError: expected to receive Request(), got nothing
    "test_flags"
    "test_iteration"
    "test_ok"
    "test_ssl_basic"
    "test_unix_domain_socket"
  ];

  meta = with lib; {
    description = "Simulate a MongoDB server";