Skip to content

Commit

Permalink
Merge pull request NixOS#64993 from gnidorah/video2midi
Browse files Browse the repository at this point in the history
video2midi: 0.3.7 -> 0.3.9.1
  • Loading branch information
worldofpeace authored Jul 20, 2019
2 parents 044bf77 + 895eea2 commit bacce59
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
18 changes: 9 additions & 9 deletions pkgs/tools/audio/video2midi/default.nix
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
{ stdenv, fetchFromGitHub, python2Packages, opencv3 }:
{ stdenv, fetchFromGitHub, pythonPackages, opencv3 }:

let
opencv3_ = python2Packages.toPythonModule (opencv3.override {
opencv3_ = pythonPackages.toPythonModule (opencv3.override {
inherit pythonPackages;
enablePython = true;
pythonPackages = python2Packages;
enableFfmpeg = true;
});
in stdenv.mkDerivation rec {
in pythonPackages.buildPythonApplication rec {
pname = "video2midi";
version = "0.3.7";
version = "0.3.9.1";

format = "other";

src = fetchFromGitHub {
owner = "svsdval";
repo = pname;
rev = version;
sha256 = "00ms9iqam3ml6fxf8djki3gyifn8sfzfkkfrdgrvs0sq47wrkc39";
sha256 = "1ndzhfng8z5080n1xkcavw21dm6rjz0x1954v9llifsdmf4cpn8y";
};

pythonPath = with python2Packages; [ opencv3_ midiutil pygame pyopengl ];
nativeBuildInputs = with python2Packages; [ python wrapPython ];
propagatedBuildInputs = with pythonPackages; [ opencv3_ midiutil pygame pyopengl ];

installPhase = ''
install -Dm755 v2m.py $out/bin/v2m.py
wrapPythonPrograms
'';

meta = with stdenv.lib; {
Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6516,7 +6516,9 @@ in

vfdecrypt = callPackage ../tools/misc/vfdecrypt { };

video2midi = callPackage ../tools/audio/video2midi { };
video2midi = callPackage ../tools/audio/video2midi {
pythonPackages = python3Packages;
};

vifm = callPackage ../applications/misc/vifm { };

Expand Down

0 comments on commit bacce59

Please sign in to comment.