forked from mirrors/nixpkgs
python310Packages.mockupdb: switch to pytestCheckHook
- disable failing tests
This commit is contained in:
parent
04abe7d80c
commit
0411577c3e
|
@ -1,19 +1,43 @@
|
|||
{ 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
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "mockupdb" ];
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
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";
|
||||
|
|
Loading…
Reference in a new issue