Merge pull request #282660 from dotlambda/asterisk-mbox-fix

python312Packages.asterisk-mbox: fix build

authored by Robert Schütz and committed by GitHub 19f81576 899022b9

+22 -2
+22 -2
pkgs/development/python-modules/asterisk-mbox/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 + , fetchpatch2 5 + , setuptools 6 + , packaging 4 7 }: 5 8 6 9 buildPythonPackage rec { 7 10 pname = "asterisk-mbox"; 8 11 version = "0.5.0"; 9 - format = "setuptools"; 12 + pyproject = true; 10 13 11 14 src = fetchPypi { 12 15 pname = "asterisk_mbox"; 13 16 inherit version; 14 - sha256 = "0624f9ab85ce9c4d43655f8653e8539fa10c81b60fd7b94b1a15dce306c20888"; 17 + hash = "sha256-BiT5q4XOnE1DZV+GU+hTn6EMgbYP17lLGhXc4wbCCIg="; 15 18 }; 19 + 20 + patches = [ 21 + # https://github.com/PhracturedBlue/asterisk_mbox/pull/1 22 + (fetchpatch2 { 23 + name = "distutils-deprecated.patch"; 24 + url = "https://github.com/PhracturedBlue/asterisk_mbox/commit/bab84525306a0c41aadd3aab4ebba7c062253d07.patch"; 25 + hash = "sha256-2j7jIl3Ydn2dHJhEzu/77Zkxhw58NIebgULifpTVidY="; 26 + }) 27 + ]; 28 + 29 + nativeBuildInputs = [ 30 + setuptools 31 + ]; 32 + 33 + propagatedBuildInputs = [ 34 + packaging 35 + ]; 16 36 17 37 # no tests implemented 18 38 doCheck = false;