Files
nixpkgs/pkgs/development/python-modules/asterisk-mbox/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

46 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
fetchpatch2,
setuptools,
packaging,
}:
buildPythonPackage rec {
pname = "asterisk-mbox";
version = "0.5.0";
pyproject = true;
src = fetchPypi {
pname = "asterisk_mbox";
inherit version;
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;
pythonImportsCheck = [ "asterisk_mbox" ];
meta = {
description = "Client side of a client/server to interact with Asterisk voicemail mailboxes";
homepage = "https://github.com/PhracturedBlue/asterisk_mbox";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ dotlambda ];
};
}