python3Packages.hug: disable broken marshmallow tests
This commit is contained in:
parent
c4c899d3ef
commit
70b54ac1cd
1 changed files with 18 additions and 8 deletions
|
@ -2,7 +2,7 @@
|
||||||
, falcon
|
, falcon
|
||||||
, pytestrunner
|
, pytestrunner
|
||||||
, requests
|
, requests
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
, marshmallow
|
, marshmallow
|
||||||
, mock
|
, mock
|
||||||
, numpy
|
, numpy
|
||||||
|
@ -20,19 +20,29 @@ buildPythonPackage rec {
|
||||||
sha256 = "05rsv16g7ph100p8kl4l2jba0y4wcpp3xblc02mfp67zp1279vaq";
|
sha256 = "05rsv16g7ph100p8kl4l2jba0y4wcpp3xblc02mfp67zp1279vaq";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pytestrunner ];
|
|
||||||
propagatedBuildInputs = [ falcon requests ];
|
propagatedBuildInputs = [ falcon requests ];
|
||||||
|
|
||||||
checkInputs = [ mock marshmallow pytest numpy ];
|
checkInputs = [ mock marshmallow pytestCheckHook pytestrunner numpy ];
|
||||||
checkPhase = ''
|
|
||||||
mv hug hug.hidden
|
preCheck = ''
|
||||||
# some tests attempt network access
|
# some tests need the `hug` CLI on the PATH
|
||||||
PATH=$out/bin:$PATH pytest -k "not (test_request or test_datagram_request)"
|
export PATH=$out/bin:$PATH
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# some tests attempt network access
|
||||||
|
"test_datagram_request"
|
||||||
|
"test_request"
|
||||||
|
# these tests use an unstable test dependency (https://github.com/hugapi/hug/issues/859)
|
||||||
|
"test_marshmallow_custom_context"
|
||||||
|
"test_marshmallow_schema"
|
||||||
|
"test_transform"
|
||||||
|
"test_validate_route_args_negative_case"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A Python framework that makes developing APIs as simple as possible, but no simpler";
|
description = "A Python framework that makes developing APIs as simple as possible, but no simpler";
|
||||||
homepage = "https://github.com/timothycrosley/hug";
|
homepage = "https://github.com/hugapi/hug";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue