about summary refs log tree commit diff
path: root/pkgs/applications/audio/pianotrans
diff options
context:
space:
mode:
authorZhong Jianxin <azuwis@gmail.com>2022-03-10 22:24:07 +0800
committerZhong Jianxin <azuwis@gmail.com>2023-02-02 00:36:42 +0800
commite2fa5eea4540e49880d91790ba239fdff5701847 (patch)
treea10eb0aff2ba28826475047637004f5739b24a41 /pkgs/applications/audio/pianotrans
parent540861c5f87007068fb0841ebb7df31b252d9c31 (diff)
downloadnixlib-e2fa5eea4540e49880d91790ba239fdff5701847.tar
nixlib-e2fa5eea4540e49880d91790ba239fdff5701847.tar.gz
nixlib-e2fa5eea4540e49880d91790ba239fdff5701847.tar.bz2
nixlib-e2fa5eea4540e49880d91790ba239fdff5701847.tar.lz
nixlib-e2fa5eea4540e49880d91790ba239fdff5701847.tar.xz
nixlib-e2fa5eea4540e49880d91790ba239fdff5701847.tar.zst
nixlib-e2fa5eea4540e49880d91790ba239fdff5701847.zip
pianotrans: init at 1.0
Diffstat (limited to 'pkgs/applications/audio/pianotrans')
-rw-r--r--pkgs/applications/audio/pianotrans/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/applications/audio/pianotrans/default.nix b/pkgs/applications/audio/pianotrans/default.nix
new file mode 100644
index 000000000000..89e0716a0adc
--- /dev/null
+++ b/pkgs/applications/audio/pianotrans/default.nix
@@ -0,0 +1,38 @@
+{ lib
+, fetchFromGitHub
+, python3
+, ffmpeg
+}:
+
+python3.pkgs.buildPythonApplication rec {
+  pname = "pianotrans";
+  version = "1.0";
+  format = "setuptools";
+
+  src = fetchFromGitHub {
+    owner = "azuwis";
+    repo = pname;
+    rev = "v${version}";
+    hash = "sha256-6Otup1Yat1dBZdSoR4lDfpytUQ2RbDXC6ieo835Nw+U=";
+  };
+
+  propagatedBuildInputs = with python3.pkgs; [
+    piano-transcription-inference
+    torch
+    tkinter
+  ];
+
+  # 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 ];
+  };
+}