git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.openapi-core: disable failing tests
commit2a8260767967d4d6b2a27471cba601616e5ca13a authorFabian Affolter <mail@fabian-affolter.ch> dateSat 26 Mar 2022, 22:41 (5 years ago) parent3f48404
1 file changed+32−23
pkgs/development/python-modules/openapi-core/default.nix+32−23
pkgs/development/python-modules/openapi-core/default.nix+32−23
@@ -1,34 +1,40 @@
11{ lib
2+, attrs
23, buildPythonPackage
4+, dictpath
5+, django
6+, djangorestframework
7+, falcon
38, fetchFromGitHub
9+, flask
410, isodate
5−, dictpath
6−, openapi-spec-validator
7−, openapi-schema-validator
8−, six
911, lazy-object-proxy
10−, attrs
11−, werkzeug
12−, parse
12+, mock
1313, more-itertools
14+, openapi-schema-validator
15+, openapi-spec-validator
16+, parse
1417, pytestCheckHook
15−, falcon
16−, flask
17−, django
18−, djangorestframework
18+, pythonOlder
1919, responses
20−, mock
20+, six
21+, webob
22+, werkzeug
23+, python
2124}:
2225
2326buildPythonPackage rec {
2427 pname = "openapi-core";
2528 version = "0.14.2";
29+ format = "setuptools";
30+
31+ disabled = pythonOlder "3.7";
2632
2733 src = fetchFromGitHub {
2834 owner = "p1c2u";
2935 repo = "openapi-core";
3036 rev = version;
31− sha256 = "1npsibyf8zx6z230yl19kyap8g25kqvgm7z1w6rm6jxv58yqsp7r";
37+ hash = "sha256-+VyNPSq7S1Oz4eGf+jaeRTx0lZ8pUA+G+KZ/5PyK+to=";
3238 };
3339
3440 postPatch = ''
@@ -36,31 +42,34 @@ buildPythonPackage rec {
3642 '';
3743
3844 propagatedBuildInputs = [
39− isodate
45+ attrs
4046 dictpath
41− openapi-spec-validator
47+ isodate
48+ lazy-object-proxy
49+ more-itertools
4250 openapi-schema-validator
51+ openapi-spec-validator
52+ parse
4353 six
44− lazy-object-proxy
45− attrs
4654 werkzeug
47− parse
48− more-itertools
4955 ];
5056
5157 checkInputs = [
52− pytestCheckHook
53− falcon
54− flask
5558 django
5659 djangorestframework
57− responses
60+ falcon
61+ flask
5862 mock
63+ pytestCheckHook
64+ responses
65+ webob
5966 ];
6067
6168 disabledTestPaths = [
6269 # AttributeError: 'str' object has no attribute '__name__'
6370 "tests/integration/validation"
71+ # Unable to detect SECRET_KEY and ROOT_URLCONF
72+ "tests/integration/contrib/test_django.py"
6473 ];
6574
6675 disabledTests = [