2019-07-20 05:52:22 +00:00
|
|
|
{ stdenv, fetchFromGitHub, pythonPackages, opencv3 }:
|
2019-06-07 05:20:01 +00:00
|
|
|
|
|
|
|
let
|
2019-07-20 05:52:22 +00:00
|
|
|
opencv3_ = pythonPackages.toPythonModule (opencv3.override {
|
|
|
|
inherit pythonPackages;
|
2019-06-07 05:20:01 +00:00
|
|
|
enablePython = true;
|
|
|
|
enableFfmpeg = true;
|
|
|
|
});
|
2019-07-20 05:52:22 +00:00
|
|
|
in pythonPackages.buildPythonApplication rec {
|
2019-06-07 05:20:01 +00:00
|
|
|
pname = "video2midi";
|
2019-10-03 14:34:37 +00:00
|
|
|
version = "0.3.9.5";
|
2019-07-20 05:52:22 +00:00
|
|
|
|
|
|
|
format = "other";
|
2019-06-07 05:20:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "svsdval";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-10-03 14:34:37 +00:00
|
|
|
sha256 = "1jc50zimc64ilc1as3dyh16lsygwqyvi381mw8si8m9j3pw6may4";
|
2019-06-07 05:20:01 +00:00
|
|
|
};
|
|
|
|
|
2019-07-20 05:52:22 +00:00
|
|
|
propagatedBuildInputs = with pythonPackages; [ opencv3_ midiutil pygame pyopengl ];
|
2019-06-07 05:20:01 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 v2m.py $out/bin/v2m.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Youtube synthesia video to midi conversion tool";
|
|
|
|
homepage = src.meta.homepage;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.gnidorah ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|