Unverified Commit 56ca20cc authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #170580 from fabaff/connexion-fix

python39Packages.connexion: 2.12.0 -> 2.13.0
parents 51bf6caa 7b7c8bab
Loading
Loading
Loading
Loading
+9 −15
Original line number Diff line number Diff line
@@ -22,16 +22,16 @@

buildPythonPackage rec {
  pname = "connexion";
  version = "2.12.0";
  version = "2.13.0";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "zalando";
    owner = "spec-first";
    repo = pname;
    rev = version;
    sha256 = "sha256-JMuI3h0Pg7nCXrJtF0fhSFJTOWelEqcvmqv3ooIfkqM=";
    hash = "sha256-QOxvs2z8AAxQ2oSM/PQ6QTD9G4JomviauLSDjay8HyQ=";
  };

  propagatedBuildInputs = [
@@ -56,24 +56,18 @@ buildPythonPackage rec {
    testfixtures
  ];

  postPatch = ''
    substituteInPlace setup.py \
      --replace "PyYAML>=5.1,<6" "PyYAML>=5.1" \
      --replace "jsonschema>=2.5.1,<4" "jsonschema>=2.5.1"
  '';

  disabledTests = [
    # We have a later PyYAML release
    "test_swagger_yaml"
  ];

  pythonImportsCheck = [
    "connexion"
  ];

  disabledTests = [
    # AssertionError
    "test_headers"
  ];

  meta = with lib; {
    description = "Swagger/OpenAPI First framework on top of Flask";
    homepage = "https://github.com/zalando/connexion/";
    homepage = "https://github.com/spec-first/connexion";
    license = licenses.asl20;
    maintainers = with maintainers; [ elohmeier ];
  };