python3Packages.prance: unbreak
This commit is contained in:
parent
19feaef42c
commit
3cd3e3167c
@ -6,10 +6,9 @@
|
|||||||
, requests
|
, requests
|
||||||
, six
|
, six
|
||||||
, semver
|
, semver
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
, pytestcov
|
, pytestcov
|
||||||
, pytestrunner
|
, pytestrunner
|
||||||
, sphinx
|
|
||||||
, openapi-spec-validator
|
, openapi-spec-validator
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -35,18 +34,28 @@ buildPythonPackage rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytest
|
pytestCheckHook
|
||||||
pytestcov
|
pytestcov
|
||||||
openapi-spec-validator
|
openapi-spec-validator
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace "tests_require = dev_require," "tests_require = None,"
|
--replace "tests_require = dev_require," "tests_require = None," \
|
||||||
|
--replace "chardet~=4.0" "" \
|
||||||
|
--replace "semver~=2.13" ""
|
||||||
|
substituteInPlace setup.cfg \
|
||||||
|
--replace "--cov-fail-under=90" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# many tests require network connection
|
# Disable tests that require network
|
||||||
doCheck = false;
|
disabledTestPaths = [
|
||||||
|
"tests/test_convert.py"
|
||||||
|
];
|
||||||
|
disabledTests = [
|
||||||
|
"test_fetch_url_http"
|
||||||
|
];
|
||||||
|
pythonImportsCheck = [ "prance" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Resolving Swagger/OpenAPI 2.0 and 3.0.0 Parser";
|
description = "Resolving Swagger/OpenAPI 2.0 and 3.0.0 Parser";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user