From 9446fb54ce77eddcb944254dbf6e3898aca2daea Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 3 May 2023 10:07:12 +0200 Subject: [PATCH] python310Packages.runway-python: remove This SDK has been deprecated. The functionality described below has been sunset and models can no longer be ported to Runway at this time. --- .../python-modules/runway-python/default.nix | 100 ------------------ pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 - 3 files changed, 1 insertion(+), 102 deletions(-) delete mode 100644 pkgs/development/python-modules/runway-python/default.nix diff --git a/pkgs/development/python-modules/runway-python/default.nix b/pkgs/development/python-modules/runway-python/default.nix deleted file mode 100644 index 28c282ed6dfd..000000000000 --- a/pkgs/development/python-modules/runway-python/default.nix +++ /dev/null @@ -1,100 +0,0 @@ -{ lib -, buildPythonPackage -, pythonAtLeast -, fetchFromGitHub -, colorcet -, cryptography -, flask -, flask-compress -, flask-cors -, flask-sockets -, gevent -, imageio -, numpy -, pillow -, pyopenssl -, scipy -, six -, unidecode -, urllib3 -, wget -, deepdiff -, pytest-cov -, pytestCheckHook -, pythonOlder -, websocket-client -}: - -buildPythonPackage rec { - pname = "runway-python"; - version = "0.6.1"; - format = "setuptools"; - - disabled = pythonOlder "3.6"; - - src = fetchFromGitHub { - owner = "runwayml"; - repo = "model-sdk"; - rev = version; - hash = "sha256-Qn+gsvxxUJee7k060lPk53qi15xwC/JORJ5aHKLigvM="; - }; - - propagatedBuildInputs = [ - colorcet - cryptography - flask - flask-compress - flask-cors - flask-sockets - gevent - imageio - numpy - pillow - pyopenssl - scipy - six - unidecode - urllib3 - wget - ] ++ urllib3.optional-dependencies.secure; - - nativeCheckInputs = [ - deepdiff - pytest-cov - pytestCheckHook - websocket-client - ]; - - postPatch = '' - # Build fails with: - # ERROR: No matching distribution found for urllib3-secure-extra; extra == "secure" - substituteInPlace requirements.txt \ - --replace "urllib3[secure]>=1.25.7" "urllib3" - ''; - - disabledTests = [ - # These tests require network - "test_file_deserialization_remote" - "test_file_deserialization_absolute_directory" - "test_file_deserialization_remote_directory" - # Fails with a decoding error at the moment - "test_inference_async" - ] ++ lib.optionals (pythonAtLeast "3.9") [ - # AttributeError: module 'base64' has no attribute 'decodestring - # https://github.com/runwayml/model-sdk/issues/99 - "test_image_serialize_and_deserialize" - "test_segmentation_serialize_and_deserialize_colormap" - "test_segmentation_serialize_and_deserialize_labelmap" - ]; - - pythonImportsCheck = [ - "runway" - ]; - - meta = { - description = "Helper library for creating Runway models"; - homepage = "https://github.com/runwayml/model-sdk"; - license = with lib.licenses; [ mit ]; - maintainers = with lib.maintainers; [ prusnak ]; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index e0fb03cbca0d..53d0ad6df5b4 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -260,6 +260,7 @@ mapAliases ({ ruamel_base = ruamel-base; # added 2021-11-01 ruamel_yaml = ruamel-yaml; # added 2021-11-01 ruamel_yaml_clib = ruamel-yaml-clib; # added 2021-11-01 + runway-python = throw "SDK has been deprecated and was archived by upstream"; # added 2023-05-03 sapi-python-client = kbcstorage; # added 2022-04-20 scikitlearn = scikit-learn; # added 2021-07-21 selectors34 = throw "selectors34 has been removed: functionality provided by Python itself; archived by upstream."; # added 2021-06-10 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index bc2bb0ced484..babbc1b68f23 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10562,8 +10562,6 @@ self: super: with self; { ruffus = callPackage ../development/python-modules/ruffus { }; - runway-python = callPackage ../development/python-modules/runway-python { }; - ruuvitag-ble = callPackage ../development/python-modules/ruuvitag-ble { }; ruyaml = callPackage ../development/python-modules/ruyaml { };