lol

python310Packages.runway-python: rename input

+23 -14
+23 -14
pkgs/development/python-modules/runway-python/default.nix
··· 19 , urllib3 20 , wget 21 , deepdiff 22 - , pytestCheckHook 23 , pytest-cov 24 , pythonOlder 25 , websocket-client 26 }: ··· 28 buildPythonPackage rec { 29 pname = "runway-python"; 30 version = "0.6.1"; 31 disabled = pythonOlder "3.6"; 32 33 src = fetchFromGitHub { 34 owner = "runwayml"; 35 repo = "model-sdk"; 36 rev = version; 37 - sha256 = "1ww2wai1qnly8i7g42vhkkbs4yp7wi9x4fjdxsg9fl3izjra0zs2"; 38 }; 39 40 propagatedBuildInputs = [ ··· 54 unidecode 55 urllib3 56 wget 57 - ]; 58 - 59 - pythonImportsCheck = [ 60 - "runway" 61 - ]; 62 63 checkInputs = [ 64 deepdiff 65 pytestCheckHook 66 - pytest-cov 67 websocket-client 68 ]; 69 70 disabledTests = [ 71 - # these tests require network 72 "test_file_deserialization_remote" 73 "test_file_deserialization_absolute_directory" 74 "test_file_deserialization_remote_directory" 75 # Fails with a decoding error at the moment 76 "test_inference_async" 77 ] ++ lib.optionals (pythonAtLeast "3.9") [ 78 - # AttributeError: module 'base64' has no attribute 'decodestring 79 - # https://github.com/runwayml/model-sdk/issues/99 80 - "test_image_serialize_and_deserialize" 81 - "test_segmentation_serialize_and_deserialize_colormap" 82 - "test_segmentation_serialize_and_deserialize_labelmap" 83 ]; 84 85 meta = {
··· 19 , urllib3 20 , wget 21 , deepdiff 22 , pytest-cov 23 + , pytestCheckHook 24 , pythonOlder 25 , websocket-client 26 }: ··· 28 buildPythonPackage rec { 29 pname = "runway-python"; 30 version = "0.6.1"; 31 + format = "setuptools"; 32 + 33 disabled = pythonOlder "3.6"; 34 35 src = fetchFromGitHub { 36 owner = "runwayml"; 37 repo = "model-sdk"; 38 rev = version; 39 + hash = "sha256-Qn+gsvxxUJee7k060lPk53qi15xwC/JORJ5aHKLigvM="; 40 }; 41 42 propagatedBuildInputs = [ ··· 56 unidecode 57 urllib3 58 wget 59 + ] ++ urllib3.optional-dependencies.secure; 60 61 checkInputs = [ 62 deepdiff 63 + pytest-cov 64 pytestCheckHook 65 websocket-client 66 ]; 67 68 + postPatch = '' 69 + # Build fails with: 70 + # ERROR: No matching distribution found for urllib3-secure-extra; extra == "secure" 71 + substituteInPlace requirements.txt \ 72 + --replace "urllib3[secure]>=1.25.7" "urllib3" 73 + ''; 74 + 75 disabledTests = [ 76 + # These tests require network 77 "test_file_deserialization_remote" 78 "test_file_deserialization_absolute_directory" 79 "test_file_deserialization_remote_directory" 80 # Fails with a decoding error at the moment 81 "test_inference_async" 82 ] ++ lib.optionals (pythonAtLeast "3.9") [ 83 + # AttributeError: module 'base64' has no attribute 'decodestring 84 + # https://github.com/runwayml/model-sdk/issues/99 85 + "test_image_serialize_and_deserialize" 86 + "test_segmentation_serialize_and_deserialize_colormap" 87 + "test_segmentation_serialize_and_deserialize_labelmap" 88 + ]; 89 + 90 + pythonImportsCheck = [ 91 + "runway" 92 ]; 93 94 meta = {