nixpkgs/pkgs/tools/audio/video2midi/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
884 B
Nix
Raw Normal View History

2023-09-23 22:26:10 +00:00
{ lib, fetchFromGitHub, pythonPackages, opencv4 }:
2019-06-07 05:20:01 +00:00
let
2023-09-23 22:26:10 +00:00
opencv4_ = pythonPackages.toPythonModule (opencv4.override {
2019-07-20 05:52:22 +00:00
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";
version = "0.4.6.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;
sha256 = "0qzrxqhsxn0h71nfrsi9g78hx3pqm3b8sr6fjq01k4k6dd2nwfam";
2019-06-07 05:20:01 +00:00
};
2023-09-23 22:26:10 +00:00
propagatedBuildInputs = with pythonPackages; [ opencv4_ midiutil pygame pyopengl ];
2019-06-07 05:20:01 +00:00
installPhase = ''
install -Dm755 v2m.py $out/bin/v2m.py
'';
meta = with lib; {
2019-06-07 05:20:01 +00:00
description = "Youtube synthesia video to midi conversion tool";
homepage = src.meta.homepage;
license = licenses.gpl3Only;
maintainers = [ ];
2019-06-07 05:20:01 +00:00
platforms = platforms.linux;
2023-11-23 21:09:35 +00:00
mainProgram = "v2m.py";
2019-06-07 05:20:01 +00:00
};
}