2023-11-16 04:20:00 +00:00
|
|
|
{ lib, fetchFromGitHub, pythonPackages, opencv4 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
2023-11-16 04:20:00 +00:00
|
|
|
opencv4_ = pythonPackages.toPythonModule (opencv4.override {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit pythonPackages;
|
|
|
|
enablePython = true;
|
|
|
|
enableFfmpeg = true;
|
|
|
|
});
|
|
|
|
in pythonPackages.buildPythonApplication rec {
|
|
|
|
pname = "video2midi";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.4.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "svsdval";
|
|
|
|
repo = pname;
|
2024-02-07 01:22:34 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
sha256 = "sha256-1q4d136pvEWTOCY7Dv8Ux2HV9zqz5pWRhMrHKGLQ5ic=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
propagatedBuildInputs = with pythonPackages; [ opencv4_ midiutil pygame pyopengl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 v2m.py $out/bin/v2m.py
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Youtube synthesia video to midi conversion tool";
|
|
|
|
homepage = src.meta.homepage;
|
2022-01-25 03:21:06 +00:00
|
|
|
license = licenses.gpl3Only;
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "v2m.py";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|