Merge pull request #59862 from JohnAZoidberg/moviepy-1.0.0-deps

Fix pythonPackages.moviepy
This commit is contained in:
markuskowa 2019-04-20 10:57:09 +02:00 committed by GitHub
commit 276d82476b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 2 deletions

View File

@ -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";

View 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;
};
}

View File

@ -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 { };