2022-02-20 05:27:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2024-01-25 14:12:00 +00:00
|
|
|
, fetchpatch2
|
|
|
|
, setuptools
|
|
|
|
, packaging
|
2022-02-20 05:27:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asterisk-mbox";
|
|
|
|
version = "0.5.0";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "asterisk_mbox";
|
|
|
|
inherit version;
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-BiT5q4XOnE1DZV+GU+hTn6EMgbYP17lLGhXc4wbCCIg=";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
# no tests implemented
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "asterisk_mbox" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "The client side of a client/server to interact with Asterisk voicemail mailboxes";
|
|
|
|
homepage = "https://github.com/PhracturedBlue/asterisk_mbox";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|