diff options
author | Robert Schütz <nix@dotlambda.de> | 2024-01-23 20:43:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-23 20:43:16 -0800 |
commit | 19f815760d1785594aa5009043c7708caebffdb9 (patch) | |
tree | 9bd2d4102853659feff1552979beb4c3c02d267b /pkgs | |
parent | 899022b9737f770693daf0b2cd6ba5a66d1c5dfc (diff) | |
parent | 42cc0d3363c8d14d4b414b26d92290d8a3602e12 (diff) |
Merge pull request #282660 from dotlambda/asterisk-mbox-fix
python312Packages.asterisk-mbox: fix build
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/asterisk-mbox/default.nix | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/asterisk-mbox/default.nix b/pkgs/development/python-modules/asterisk-mbox/default.nix index 4347c42d47dd9..0a08dc737449a 100644 --- a/pkgs/development/python-modules/asterisk-mbox/default.nix +++ b/pkgs/development/python-modules/asterisk-mbox/default.nix @@ -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; |