Merge pull request #165880 from fabaff/openapi-core-fix

python3Packages.openapi-core: disable failing tests
This commit is contained in:
Fabian Affolter
2022-03-27 10:30:49 +02:00
committed by GitHub
3 changed files with 84 additions and 28 deletions
@@ -1,34 +1,40 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, isodate
, dictpath
, openapi-spec-validator
, openapi-schema-validator
, six
, lazy-object-proxy
, attrs
, werkzeug
, parse
, more-itertools
, pytestCheckHook
, falcon
, flask
, buildPythonPackage
, dictpath
, django
, djangorestframework
, responses
, falcon
, fetchFromGitHub
, flask
, isodate
, lazy-object-proxy
, mock
, more-itertools
, openapi-schema-validator
, openapi-spec-validator
, parse
, pytestCheckHook
, pythonOlder
, responses
, six
, webob
, werkzeug
, python
}:
buildPythonPackage rec {
pname = "openapi-core";
version = "0.14.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "p1c2u";
repo = "openapi-core";
rev = version;
sha256 = "1npsibyf8zx6z230yl19kyap8g25kqvgm7z1w6rm6jxv58yqsp7r";
hash = "sha256-+VyNPSq7S1Oz4eGf+jaeRTx0lZ8pUA+G+KZ/5PyK+to=";
};
postPatch = ''
@@ -36,31 +42,34 @@ buildPythonPackage rec {
'';
propagatedBuildInputs = [
isodate
dictpath
openapi-spec-validator
openapi-schema-validator
six
lazy-object-proxy
attrs
werkzeug
parse
dictpath
isodate
lazy-object-proxy
more-itertools
openapi-schema-validator
openapi-spec-validator
parse
six
werkzeug
];
checkInputs = [
pytestCheckHook
falcon
flask
django
djangorestframework
responses
falcon
flask
mock
pytestCheckHook
responses
webob
];
disabledTestPaths = [
# AttributeError: 'str' object has no attribute '__name__'
"tests/integration/validation"
# Unable to detect SECRET_KEY and ROOT_URLCONF
"tests/integration/contrib/test_django.py"
];
disabledTests = [
@@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, poetry-core
}:
buildPythonPackage rec {
pname = "pathable";
version = "0.4.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "p1c2u";
repo = pname;
rev = version;
hash = "sha256-3qekweG+o7f6nm1cnCEHrWYn/fQ42GZrZkPwGbZcU38=";
};
nativeBuildInputs = [
poetry-core
];
checkInputs = [
pytestCheckHook
];
postPatch = ''
sed -i "/--cov/d" pyproject.toml
'';
pythonImportsCheck = [
"pathable"
];
meta = with lib; {
description = "Library for object-oriented paths";
homepage = "https://github.com/p1c2u/pathable";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}
+2
View File
@@ -5991,6 +5991,8 @@ in {
path-and-address = callPackage ../development/python-modules/path-and-address { };
pathable = callPackage ../development/python-modules/pathable { };
pathlib2 = callPackage ../development/python-modules/pathlib2 { };
pathlib = callPackage ../development/python-modules/pathlib { };