nixpkgs/pkgs/by-name/pi/pianotrans/package.nix

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

40 lines
812 B
Nix
Raw Normal View History

2022-03-10 15:24:07 +01:00
{ lib
, fetchFromGitHub
, python3
, ffmpeg
}:
python3.pkgs.buildPythonApplication rec {
pname = "pianotrans";
2023-02-17 08:48:02 +01:00
version = "1.0.1";
2022-03-10 15:24:07 +01:00
format = "setuptools";
src = fetchFromGitHub {
owner = "azuwis";
repo = pname;
rev = "v${version}";
2023-02-17 08:48:02 +01:00
hash = "sha256-gRbyUQmPtGvx5QKAyrmeJl0stp7hwLBWwjSbJajihdE=";
2022-03-10 15:24:07 +01:00
};
propagatedBuildInputs = with python3.pkgs; [
piano-transcription-inference
resampy
2022-03-10 15:24:07 +01:00
tkinter
torch
2022-03-10 15:24:07 +01:00
];
# Project has no tests
doCheck = false;
makeWrapperArgs = [
''--prefix PATH : "${lib.makeBinPath [ ffmpeg ]}"''
];
meta = with lib; {
description = "Simple GUI for ByteDance's Piano Transcription with Pedals";
homepage = "https://github.com/azuwis/pianotrans";
license = licenses.mit;
maintainers = with maintainers; [ azuwis ];
};
}