diff --git a/pkgs/development/python-modules/uamqp/default.nix b/pkgs/development/python-modules/uamqp/default.nix deleted file mode 100644 index 89769859cdf7..000000000000 --- a/pkgs/development/python-modules/uamqp/default.nix +++ /dev/null @@ -1,85 +0,0 @@ -{ - lib, - stdenv, - buildPythonPackage, - fetchFromGitHub, - fetchpatch2, - setuptools, - cython, - certifi, - cmake, - openssl, - pytestCheckHook, - pytest-asyncio, -}: - -buildPythonPackage rec { - pname = "uamqp"; - version = "1.6.11"; - pyproject = true; - - src = fetchFromGitHub { - owner = "Azure"; - repo = "azure-uamqp-python"; - tag = "v${version}"; - hash = "sha256-HTIOHheCrvyI7DwA/UcUXk/fbesd29lvUvJ9TAeG3CE="; - }; - - patches = [ - (fetchpatch2 { - name = "fix-clang16-compatibility.patch"; - url = "https://github.com/Azure/azure-uamqp-python/commit/bd6d9ef5a8bca3873e1e66218fd09ca787b8064e.patch"; - hash = "sha256-xtnIVjB71EPJp/QjLQWctcSDds5s6n4ut+gnvp3VMlM="; - }) - ]; - - postPatch = lib.optionalString (stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isx86_64) '' - # force darwin aarch64 to use openssl instead of applessl, removing - # some quirks upstream thinks they need to use openssl on macos - sed -i \ - -e '/^use_openssl =/cuse_openssl = True' \ - -e 's/\bazssl\b/ssl/' \ - -e 's/\bazcrypto\b/crypto/' \ - setup.py - sed -i \ - -e '/#define EVP_PKEY_id/d' \ - src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/adapters/x509_openssl.c - sed -z -i \ - -e 's/OpenSSL 3\nif(LINUX)/OpenSSL 3\nif(1)/' \ - src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/CMakeLists.txt - ''; - - build-system = [ - cython - setuptools - ]; - - nativeBuildInputs = [ - cmake - ]; - - buildInputs = [ openssl ]; - - dependencies = [ certifi ]; - - dontUseCmakeConfigure = true; - - preCheck = '' - # remove src module, so tests use the installed module instead - rm -r uamqp - ''; - - nativeCheckInputs = [ - pytestCheckHook - pytest-asyncio - ]; - - pythonImportsCheck = [ "uamqp" ]; - - meta = with lib; { - description = "AMQP 1.0 client library for Python"; - homepage = "https://github.com/Azure/azure-uamqp-python"; - license = licenses.mit; - maintainers = with maintainers; [ maxwilson ]; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 53133cb072aa..052edce0f572 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -777,6 +777,7 @@ mapAliases ({ types-cryptography = throw "types-cryptography has been removed because it is obsolete since cryptography version 3.4.4."; # added 2022-05-30 types-enum34 = throw "types-enum34 is obselete since Python 3.4"; # added 2025-02-15 types-paramiko = throw "types-paramiko has been removed because it was unused."; # added 2022-05-30 + uamqp = throw "'uamqp' has been removed because it is broken and unmaintained."; # added 2025-06-11 ufoLib2 = ufolib2; # added 2024-01-07 ukrainealarm = throw "ukrainealarm has been removed, as it has been replaced as a home-assistant dependency by uasiren."; # added 2024-01-05 unblob-native = throw "unblob-native has been removed because its functionality is merged into unblob 25.4.14."; # Added 2025-05-02 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 17e5b711c8c6..212a9f001d90 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -18379,8 +18379,6 @@ self: super: with self; { ua-parser-rs = callPackage ../development/python-modules/ua-parser-rs { }; - uamqp = callPackage ../development/python-modules/uamqp { }; - uarray = callPackage ../development/python-modules/uarray { }; uart-devices = callPackage ../development/python-modules/uart-devices { };