From 48c44abb50a518e22fdebde042acc9bb2511a5bf Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 5 Feb 2025 09:43:30 +0100 Subject: [PATCH] python312Packages.timing-asgi: fix build --- .../python-modules/timing-asgi/default.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/timing-asgi/default.nix b/pkgs/development/python-modules/timing-asgi/default.nix index e08bea2534fa..00729718e9e6 100644 --- a/pkgs/development/python-modules/timing-asgi/default.nix +++ b/pkgs/development/python-modules/timing-asgi/default.nix @@ -18,10 +18,15 @@ buildPythonPackage rec { hash = "sha256-oEDesmy9t2m51Zd6Zg87qoYbfbDnejfrbjyBkZ3hF58="; }; + # The current pyproject.toml content is not compatible with poetry-core==2.0 postPatch = '' substituteInPlace pyproject.toml \ - --replace-fail poetry.masonry.api poetry.core.masonry.api \ - --replace-fail "poetry>=" "poetry-core>=" + --replace-fail "[tool.poetry]" "[project]" \ + --replace-fail \ + '"Steinn Eldjárn Sigurðarson "' \ + '{ name = "Steinn Eldjárn Sigurðarson", email = "steinnes@gmail.com" },' \ + --replace-fail poetry.masonry.api poetry.core.masonry.api \ + --replace-fail "poetry>=" "poetry-core>=" ''; build-system = [ poetry-core ]; @@ -37,10 +42,10 @@ buildPythonPackage rec { pytestCheckHook ]; - meta = with lib; { + meta = { description = "ASGI middleware to emit timing metrics with something like statsd"; homepage = "https://pypi.org/project/timing-asgi"; - license = licenses.mit; - maintainers = with maintainers; [ GaetanLepage ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ GaetanLepage ]; }; }