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

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

36 lines
856 B
Nix
Raw Normal View History

{ 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";
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;
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
'';
meta = with lib; {
2019-06-07 06:20:01 +01:00
description = "Youtube synthesia video to midi conversion tool";
homepage = src.meta.homepage;
license = licenses.gpl3Only;
maintainers = [ ];
2019-06-07 06:20:01 +01:00
platforms = platforms.linux;
};
}