git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #165880 from fabaff/openapi-core-fix

python3Packages.openapi-core: disable failing tests

commitbeed14b3ce97a1826867102326eb1270ca8e9ad2 authorFabian Affolter <fabian@affolter-engineering.ch> dateSun 27 Mar 2022, 10:30 (5 years ago) parentadb84432a82607
3 files changed+79−23
pkgs/development/python-modules/openapi-core/default.nix+32−23 pkgs/development/python-modules/pathable/default.nix+45 pkgs/top-level/python-packages.nix+2
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 = [
pkgs/development/python-modules/pathable/default.nixnew file+45
@@ -0,0 +1,45 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, pytestCheckHook
5+, pythonOlder
6+, poetry-core
7+}:
8+
9+buildPythonPackage rec {
10+ pname = "pathable";
11+ version = "0.4.0";
12+ format = "pyproject";
13+
14+ disabled = pythonOlder "3.7";
15+
16+ src = fetchFromGitHub {
17+ owner = "p1c2u";
18+ repo = pname;
19+ rev = version;
20+ hash = "sha256-3qekweG+o7f6nm1cnCEHrWYn/fQ42GZrZkPwGbZcU38=";
21+ };
22+
23+ nativeBuildInputs = [
24+ poetry-core
25+ ];
26+
27+ checkInputs = [
28+ pytestCheckHook
29+ ];
30+
31+ postPatch = ''
32+ sed -i "/--cov/d" pyproject.toml
33+ '';
34+
35+ pythonImportsCheck = [
36+ "pathable"
37+ ];
38+
39+ meta = with lib; {
40+ description = "Library for object-oriented paths";
41+ homepage = "https://github.com/p1c2u/pathable";
42+ license = licenses.asl20;
43+ maintainers = with maintainers; [ fab ];
44+ };
45+}
pkgs/top-level/python-packages.nix+2
@@ -5991,6 +5991,8 @@ in {
59915991
59925992 path-and-address = callPackage ../development/python-modules/path-and-address { };
59935993
5994+ pathable = callPackage ../development/python-modules/pathable { };
5995+
59945996 pathlib2 = callPackage ../development/python-modules/pathlib2 { };
59955997
59965998 pathlib = callPackage ../development/python-modules/pathlib { };