1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 fetchpatch2,
6 setuptools,
7 packaging,
8}:
9
10buildPythonPackage rec {
11 pname = "asterisk-mbox";
12 version = "0.5.0";
13 pyproject = true;
14
15 src = fetchPypi {
16 pname = "asterisk_mbox";
17 inherit version;
18 hash = "sha256-BiT5q4XOnE1DZV+GU+hTn6EMgbYP17lLGhXc4wbCCIg=";
19 };
20
21 patches = [
22 # https://github.com/PhracturedBlue/asterisk_mbox/pull/1
23 (fetchpatch2 {
24 name = "distutils-deprecated.patch";
25 url = "https://github.com/PhracturedBlue/asterisk_mbox/commit/bab84525306a0c41aadd3aab4ebba7c062253d07.patch";
26 hash = "sha256-2j7jIl3Ydn2dHJhEzu/77Zkxhw58NIebgULifpTVidY=";
27 })
28 ];
29
30 nativeBuildInputs = [ setuptools ];
31
32 propagatedBuildInputs = [ packaging ];
33
34 # no tests implemented
35 doCheck = false;
36
37 pythonImportsCheck = [ "asterisk_mbox" ];
38
39 meta = with lib; {
40 description = "Client side of a client/server to interact with Asterisk voicemail mailboxes";
41 homepage = "https://github.com/PhracturedBlue/asterisk_mbox";
42 license = licenses.gpl3Only;
43 maintainers = with maintainers; [ dotlambda ];
44 };
45}