1 { lib, fetchFromGitHub, pythonPackages, opencv4 }:
4 opencv4_ = pythonPackages.toPythonModule (opencv4.override {
5 inherit pythonPackages;
9 in pythonPackages.buildPythonApplication rec {
15 src = fetchFromGitHub {
18 rev = "refs/tags/${version}";
19 sha256 = "sha256-1q4d136pvEWTOCY7Dv8Ux2HV9zqz5pWRhMrHKGLQ5ic=";
22 propagatedBuildInputs = with pythonPackages; [ opencv4_ midiutil pygame pyopengl ];
25 install -Dm755 v2m.py $out/bin/v2m.py
29 description = "Youtube synthesia video to midi conversion tool";
30 homepage = src.meta.homepage;
31 license = licenses.gpl3Only;
33 platforms = platforms.linux;
34 mainProgram = "v2m.py";