1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
{
lib,
buildPythonPackage,
decorator,
fetchFromGitHub,
imageio,
imageio-ffmpeg,
matplotlib,
numpy,
proglog,
pytestCheckHook,
pythonOlder,
requests,
scikit-image,
scikit-learn,
scipy,
setuptools,
tqdm,
yt-dlp,
}:
buildPythonPackage rec {
pname = "moviepy";
version = "1.0.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Zulko";
repo = "moviepy";
rev = "refs/tags/v${version}";
hash = "sha256-l7AwzAKSaEV+pPbltKgwllK6X54oruU2w0AvoCsrESE=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "decorator>=4.0.2,<5.0" "decorator>=4.0.2,<6.0"
'';
build-system = [ setuptools ];
dependencies = [
decorator
imageio
imageio-ffmpeg
numpy
proglog
requests
tqdm
];
passthru.optional-dependencies = {
optionals = [
matplotlib
scikit-image
scikit-learn
scipy
yt-dlp
];
};
nativeCheckInputs = [
pytestCheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
pythonImportsCheck = [ "moviepy" ];
disabledTests = [
"test_cuts1"
"test_issue"
"test_PR"
"test_setup"
"test_subtitles"
"test_sys_write_flush"
# media duration mismatch: assert 2.9 == 3.0
"test_ffmpeg_parse_infos"
];
disabledTestPaths = [
"tests/test_compositing.py"
"tests/test_fx.py"
"tests/test_ImageSequenceClip.py"
"tests/test_resourcerelease.py"
"tests/test_resourcereleasedemo.py"
"tests/test_TextClip.py"
"tests/test_VideoClip.py"
"tests/test_Videos.py"
"tests/test_videotools.py"
];
meta = with lib; {
description = "Video editing with Python";
homepage = "https://zulko.github.io/moviepy/";
changelog = "https://github.com/Zulko/moviepy/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}
|