Commit 21d6cb90 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt
Browse files

python311Packages.fastapi-mail: modernize

parent e186dcb1
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -33,16 +33,19 @@ buildPythonPackage rec {
    hash = "sha256-2iTZqZIxlt1GKhElasTcnys18UbNNDwHoZziHBOIGBo=";
  };

  pythonRelaxDeps = [
    "aiosmtplib"
    "pydantic"
  ];

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace 'version = "1.2.5"' 'version = "${version}"' \
      --replace 'aiosmtplib = "^2.0"' 'aiosmtplib = "*"' \
      --replace 'pydantic = "^2.0"' 'pydantic = "*"' \
      --replace-fail 'version = "1.2.5"' 'version = "${version}"'
  '';

  nativeBuildInputs = [ poetry-core ];
  build-system = [ poetry-core ];

  propagatedBuildInputs = [
  dependencies = [
    aioredis
    aiosmtplib
    blinker