diff --git a/pkgs/development/python-modules/hug/default.nix b/pkgs/development/python-modules/hug/default.nix deleted file mode 100644 index 2bd9cc3a20db..000000000000 --- a/pkgs/development/python-modules/hug/default.nix +++ /dev/null @@ -1,66 +0,0 @@ -{ - lib, - buildPythonPackage, - fetchFromGitHub, - isPy27, - falcon, - requests, - pytestCheckHook, - marshmallow, - mock, - numpy, -}: - -buildPythonPackage rec { - pname = "hug"; - version = "2.6.0"; - format = "setuptools"; - disabled = isPy27; - - src = fetchFromGitHub { - owner = "hugapi"; - repo = pname; - rev = version; - sha256 = "05rsv16g7ph100p8kl4l2jba0y4wcpp3xblc02mfp67zp1279vaq"; - }; - - propagatedBuildInputs = [ - falcon - requests - ]; - - nativeCheckInputs = [ - mock - marshmallow - pytestCheckHook - numpy - ]; - - postPatch = '' - substituteInPlace setup.py --replace '"pytest-runner"' "" - ''; - - preCheck = '' - # some tests need the `hug` CLI on the PATH - export PATH=$out/bin:$PATH - ''; - - disabledTests = [ - # some tests attempt network access - "test_datagram_request" - "test_request" - # these tests use an unstable test dependency (https://github.com/hugapi/hug/issues/859) - "test_marshmallow_custom_context" - "test_marshmallow_schema" - "test_transform" - "test_validate_route_args_negative_case" - ]; - - meta = with lib; { - description = "Python framework that makes developing APIs as simple as possible, but no simpler"; - homepage = "https://github.com/hugapi/hug"; - license = licenses.mit; - # Missing support for later falcon releases - broken = true; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 9179bbe0326f..01bc2331c64d 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -267,6 +267,7 @@ mapAliases ({ homeassistant-pyozw = throw "homeassistant-pyozw has been removed, as it was packaged for home-assistant which has removed it as a dependency."; # added 2024-01-05 htmllaundry = throw "htmllaundry has been removed because it is abandoned"; # added 2024-06-04 HTSeq = htseq; # added 2023-02-19 + hug = throw "hug was marked broken since 2021 and has not established compatibility with newer dependency versions. It has therefore been removed."; # added 2024-11-15 hyperkitty = throw "Please use pkgs.mailmanPackages.hyperkitty"; # added 2022-04-29 ihatemoney = throw "ihatemoney was removed because it is no longer maintained downstream"; # added 2023-04-08 IMAPClient = imapclient; # added 2021-10-28 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3a6c645664dc..9cd37049411a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5976,8 +5976,6 @@ self: super: with self; { huey = callPackage ../development/python-modules/huey { }; - hug = callPackage ../development/python-modules/hug { }; - huggingface-hub = callPackage ../development/python-modules/huggingface-hub { }; huisbaasje-client = callPackage ../development/python-modules/huisbaasje-client { };