mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
python3Packages.prance: unbreak
This commit is contained in:
parent
19feaef42c
commit
3cd3e3167c
1 changed files with 15 additions and 6 deletions
|
@ -6,10 +6,9 @@
|
|||
, requests
|
||||
, six
|
||||
, semver
|
||||
, pytest
|
||||
, pytestCheckHook
|
||||
, pytestcov
|
||||
, pytestrunner
|
||||
, sphinx
|
||||
, openapi-spec-validator
|
||||
}:
|
||||
|
||||
|
@ -35,18 +34,28 @@ buildPythonPackage rec {
|
|||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
pytestCheckHook
|
||||
pytestcov
|
||||
openapi-spec-validator
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
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
|
||||
doCheck = false;
|
||||
# Disable tests that require network
|
||||
disabledTestPaths = [
|
||||
"tests/test_convert.py"
|
||||
];
|
||||
disabledTests = [
|
||||
"test_fetch_url_http"
|
||||
];
|
||||
pythonImportsCheck = [ "prance" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Resolving Swagger/OpenAPI 2.0 and 3.0.0 Parser";
|
||||
|
|
Loading…
Reference in a new issue