summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2022-06-09 17:38:05 +0200
committerGitHub <noreply@github.com>2022-06-09 17:38:05 +0200
commit2119531de64bd2c27b2fe8b0e7b3d46b6ef66e08 (patch)
tree28c142a76ea22790dad48b8a5e1080ee376ba3e7
parentMerge pull request #177030 from NixOS/backport-176821-to-release-22.05 (diff)
parentpython310Packages.bravado-core: disable failing tests (diff)
downloadnixpkgs-2119531de64bd2c27b2fe8b0e7b3d46b6ef66e08.tar.gz
Merge pull request #177017 from sgiroux-spwr/backport-174952-to-release-22.05
[22.05] python310Packages.bravado-core: disable failing tests
-rw-r--r--pkgs/development/python-modules/bravado-core/default.nix102
1 files changed, 81 insertions, 21 deletions
diff --git a/pkgs/development/python-modules/bravado-core/default.nix b/pkgs/development/python-modules/bravado-core/default.nix
index 19d3791bed59..eb0e03653e59 100644
--- a/pkgs/development/python-modules/bravado-core/default.nix
+++ b/pkgs/development/python-modules/bravado-core/default.nix
@@ -1,47 +1,107 @@
-{ stdenv, lib, buildPythonPackage, fetchFromGitHub, python-dateutil, jsonref, jsonschema,
- pyyaml, simplejson, six, pytz, msgpack, swagger-spec-validator, rfc3987,
- strict-rfc3339, webcolors, mypy-extensions, jsonpointer, idna, pytest, mock,
- pytest-benchmark, isPy27, enum34 }:
+{ lib
+, stdenv
+, buildPythonPackage
+, fetchFromGitHub
+, fqdn
+, idna
+, isoduration
+, jsonpointer
+, jsonref
+, jsonschema
+, mock
+, msgpack
+, mypy-extensions
+, pytest-benchmark
+, pytestCheckHook
+, python-dateutil
+, pythonOlder
+, pytz
+, pyyaml
+, rfc3987
+, rfc3339-validator
+, simplejson
+, six
+, strict-rfc3339
+, swagger-spec-validator
+, uri-template
+, webcolors
+}:
buildPythonPackage rec {
pname = "bravado-core";
version = "5.17.0";
+ format = "setuptools";
+
+ disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Yelp";
repo = pname;
rev = "v${version}";
- sha256 = "sha256-okQA4YJq0lyVJuDzD8mMRlOS/K3gf1qRUpw/5M0LlZE=";
+ hash = "sha256-okQA4YJq0lyVJuDzD8mMRlOS/K3gf1qRUpw/5M0LlZE=";
};
- checkInputs = [
- mypy-extensions
- pytest
- mock
- pytest-benchmark
- ];
-
- checkPhase = "pytest --benchmark-skip";
-
propagatedBuildInputs = [
- python-dateutil
jsonref
jsonschema
+ msgpack
+ python-dateutil
+ pytz
pyyaml
simplejson
six
- pytz
- msgpack
swagger-spec-validator
- # the following 3 packages are included when jsonschema (3.2) is installed
+ # the following packages are included when jsonschema (3.2) is installed
# as jsonschema[format], which reflects what happens in setup.py
+ fqdn
+ idna
+ isoduration
+ jsonpointer
rfc3987
+ rfc3339-validator
strict-rfc3339
+ uri-template
webcolors
- jsonpointer
- idna
- ] ++ lib.optionals isPy27 [ enum34 ];
+ ];
+
+ checkInputs = [
+ mypy-extensions
+ pytestCheckHook
+ mock
+ pytest-benchmark
+ ];
+
+ pythonImportsCheck = [
+ "bravado_core"
+ ];
+
+ pytestFlagsArray = [
+ "--benchmark-skip"
+ ];
+
+ disabledTestPaths = [
+ # Tests are out-dated (not supporting later modules releases, e.g., jsonschema)
+ "tests/_decorators_test.py"
+ "tests/formatter"
+ "tests/marshal"
+ "tests/model"
+ "tests/operation"
+ "tests/param"
+ "tests/request"
+ "tests/resource"
+ "tests/response"
+ "tests/schema"
+ "tests/security_test.py"
+ "tests/spec"
+ "tests/swagger20_validator"
+ "tests/unmarshal"
+ "tests/validate"
+ ];
+
+ disabledTests = [
+ "test_petstore_spec"
+ ];
meta = with lib; {
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;