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