mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
2d60e17c28
librosa 0.10 makes `resampy` optional, from https://librosa.org/doc/0.10.0/generated/librosa.resample.html: > samplerate and resampy are not installed with librosa. To use samplerate or resampy, they should be installed manually
40 lines
812 B
Nix
40 lines
812 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";
|
|
homepage = "https://github.com/azuwis/pianotrans";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ azuwis ];
|
|
};
|
|
}
|