From 42cc0d3363c8d14d4b414b26d92290d8a3602e12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 21 Jan 2024 10:13:53 -0800 Subject: [PATCH] python312Packages.asterisk-mbox: fix build --- .../python-modules/asterisk-mbox/default.nix | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/asterisk-mbox/default.nix b/pkgs/development/python-modules/asterisk-mbox/default.nix index 4347c42d47dd..0a08dc737449 100644 --- a/pkgs/development/python-modules/asterisk-mbox/default.nix +++ b/pkgs/development/python-modules/asterisk-mbox/default.nix @@ -1,19 +1,39 @@ { lib , buildPythonPackage , fetchPypi +, fetchpatch2 +, setuptools +, packaging }: buildPythonPackage rec { pname = "asterisk-mbox"; version = "0.5.0"; - format = "setuptools"; + pyproject = true; src = fetchPypi { pname = "asterisk_mbox"; inherit version; - sha256 = "0624f9ab85ce9c4d43655f8653e8539fa10c81b60fd7b94b1a15dce306c20888"; + hash = "sha256-BiT5q4XOnE1DZV+GU+hTn6EMgbYP17lLGhXc4wbCCIg="; }; + patches = [ + # https://github.com/PhracturedBlue/asterisk_mbox/pull/1 + (fetchpatch2 { + name = "distutils-deprecated.patch"; + url = "https://github.com/PhracturedBlue/asterisk_mbox/commit/bab84525306a0c41aadd3aab4ebba7c062253d07.patch"; + hash = "sha256-2j7jIl3Ydn2dHJhEzu/77Zkxhw58NIebgULifpTVidY="; + }) + ]; + + nativeBuildInputs = [ + setuptools + ]; + + propagatedBuildInputs = [ + packaging + ]; + # no tests implemented doCheck = false;