Commit 51c0f530 authored by Robert Schütz's avatar Robert Schütz
Browse files
parent f90d115c
Loading
Loading
Loading
Loading
+2 −13
Original line number Diff line number Diff line
@@ -30,29 +30,18 @@

buildPythonPackage rec {
  pname = "openapi-core";
  version = "0.19.5";
  version = "0.22.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "p1c2u";
    repo = "openapi-core";
    tag = version;
    hash = "sha256-Q7Z6bq8TztNm2QLL7g23rOGnXVfiTDjquHAhcSWYlC4=";
    hash = "sha256-fdONzFde9k2NAd5Rd8vTLt/lQX72JdNSFJhPVWryRQw=";
  };

  postPatch = ''
    # https://github.com/python-openapi/openapi-core/issues/1009
    substituteInPlace tests/unit/extensions/test_factories.py \
      --replace-fail 'assert test_model_class.__dataclass_fields__["name"].type == str(Any)' \
                     'assert str(test_model_class.__dataclass_fields__["name"].type) == str(Any)'
  '';

  build-system = [ poetry-core ];

  pythonRelaxDeps = [
    "werkzeug"
  ];

  dependencies = [
    isodate
    more-itertools