Merge pull request #59862 from JohnAZoidberg/moviepy-1.0.0-deps
Fix pythonPackages.moviepy
This commit is contained in:
commit
276d82476b
@ -1,25 +1,48 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonAtLeast
|
||||
, numpy
|
||||
, decorator
|
||||
, imageio
|
||||
, imageio-ffmpeg
|
||||
, isPy3k
|
||||
, proglog
|
||||
, requests
|
||||
, tqdm
|
||||
# Advanced image processing (triples size of output)
|
||||
, advancedProcessing ? false
|
||||
, opencv ? null
|
||||
, scikitimage ? null
|
||||
, scikitlearn ? null
|
||||
, scipy ? null
|
||||
, matplotlib ? null
|
||||
, youtube-dl ? null
|
||||
}:
|
||||
|
||||
assert advancedProcessing -> (
|
||||
opencv != null && scikitimage != null && scikitlearn != null
|
||||
&& scipy != null && matplotlib != null && youtube-dl != null);
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "moviepy";
|
||||
version = "1.0.0";
|
||||
|
||||
disabled = !(pythonAtLeast "3.4");
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "16c7ffca23d90c76dd7b163f648c8166dfd589b7c180b8ff75aa327ae0a2fc6d";
|
||||
};
|
||||
|
||||
# No tests
|
||||
# No tests, require network connection
|
||||
doCheck = false;
|
||||
propagatedBuildInputs = [ numpy decorator imageio tqdm ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
numpy decorator imageio imageio-ffmpeg tqdm requests proglog
|
||||
] ++ (stdenv.lib.optionals advancedProcessing [
|
||||
opencv scikitimage scikitlearn scipy matplotlib youtube-dl
|
||||
]);
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Video editing with Python";
|
||||
|
19
pkgs/development/python-modules/proglog/default.nix
Normal file
19
pkgs/development/python-modules/proglog/default.nix
Normal file
@ -0,0 +1,19 @@
|
||||
{ stdenv, fetchPypi, buildPythonPackage, tqdm }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "proglog";
|
||||
version = "0.1.9";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "13diln950wk6nnn4rpmzx37rvrnpa7f803gwygiwbq1q46zwri6q";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ tqdm ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Logs and progress bars manager for Python";
|
||||
homepage = https://github.com/Edinburgh-Genome-Foundry/Proglog;
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
@ -596,6 +596,8 @@ in {
|
||||
|
||||
progress = callPackage ../development/python-modules/progress { };
|
||||
|
||||
proglog = callPackage ../development/python-modules/proglog { };
|
||||
|
||||
pure-python-adb-homeassistant = callPackage ../development/python-modules/pure-python-adb-homeassistant { };
|
||||
|
||||
pymysql = callPackage ../development/python-modules/pymysql { };
|
||||
|
Loading…
Reference in New Issue
Block a user