3
0
Fork 0
forked from mirrors/nixpkgs

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

python312Packages.asterisk-mbox: fix build
This commit is contained in:
Robert Schütz 2024-01-23 20:43:16 -08:00 committed by GitHub
commit 19f815760d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;