2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitHub, pythonPackages, opencv3 }:
|
2019-06-07 06:20:01 +01:00
|
|
|
|
|
|
|
let
|
2019-07-20 06:52:22 +01:00
|
|
|
opencv3_ = pythonPackages.toPythonModule (opencv3.override {
|
|
|
|
inherit pythonPackages;
|
2019-06-07 06:20:01 +01:00
|
|
|
enablePython = true;
|
|
|
|
enableFfmpeg = true;
|
|
|
|
});
|
2019-07-20 06:52:22 +01:00
|
|
|
in pythonPackages.buildPythonApplication rec {
|
2019-06-07 06:20:01 +01:00
|
|
|
pname = "video2midi";
|
2022-01-24 20:52:06 +00:00
|
|
|
version = "0.4.6.5";
|
2019-07-20 06:52:22 +01:00
|
|
|
|
|
|
|
format = "other";
|
2019-06-07 06:20:01 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "svsdval";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-01-24 20:52:06 +00:00
|
|
|
sha256 = "0qzrxqhsxn0h71nfrsi9g78hx3pqm3b8sr6fjq01k4k6dd2nwfam";
|
2019-06-07 06:20:01 +01:00
|
|
|
};
|
|
|
|
|
2019-07-20 06:52:22 +01:00
|
|
|
propagatedBuildInputs = with pythonPackages; [ opencv3_ midiutil pygame pyopengl ];
|
2019-06-07 06:20:01 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 v2m.py $out/bin/v2m.py
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-06-07 06:20:01 +01:00
|
|
|
description = "Youtube synthesia video to midi conversion tool";
|
|
|
|
homepage = src.meta.homepage;
|
2022-01-24 20:52:06 +00:00
|
|
|
license = licenses.gpl3Only;
|
2021-04-29 06:21:13 +01:00
|
|
|
maintainers = [ ];
|
2019-06-07 06:20:01 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|