mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 01:33:10 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
41 lines
844 B
Nix
41 lines
844 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, python3
|
|
, ffmpeg
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "pianotrans";
|
|
version = "1.0.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "azuwis";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-gRbyUQmPtGvx5QKAyrmeJl0stp7hwLBWwjSbJajihdE=";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
piano-transcription-inference
|
|
resampy
|
|
tkinter
|
|
torch
|
|
];
|
|
|
|
# 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";
|
|
mainProgram = "pianotrans";
|
|
homepage = "https://github.com/azuwis/pianotrans";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ azuwis ];
|
|
};
|
|
}
|