This commit is contained in:
2024-09-03 18:33:41 +00:00
parent 479b138055
commit ce8c8c3bc6
7 changed files with 138 additions and 1 deletions

View File

@@ -0,0 +1,37 @@
{
python3Packages,
fetchurl,
lib,
pkgs,
}:
python3Packages.buildPythonPackage rec {
pname = "beets-bpmanalyser";
version = "1.5.9";
# Source can be downloaded directly from PyPI or a specific URL
src = pkgs.fetchPypi {
# inherit pname version;
inherit version;
pname = "beets_bpmanalyser";
sha256 = "sha256-iWXSELGRHI4ak1MTWCSdRiyPz618fyBSzKw/FeJigZ4="; # Replace with actual hash
};
propagatedBuildInputs = with pkgs.python3Packages; [
numpy
aubio
pydub
];
nativeBuildInputs = [
pkgs.ffmpeg
];
# There's no test
doCheck = false;
meta = with pkgs.lib; {
description = "A BPM analyzer plugin for Beets music library manager";
homepage = "https://github.com/sampsyo/beets";
license = licenses.mit;
maintainers = with maintainers; [ yourGitHubHandle ];
};
}

View File

@@ -0,0 +1,39 @@
{
python3Packages,
fetchFromGitHub,
beets,
lib,
}:
with python3Packages;
buildPythonPackage rec {
pname = "beets-bpmanalyser";
version = "1.5.9";
src = fetchFromGitHub {
owner = "sstent";
repo = "BeetsPluginBpmAnalyser";
rev = "2232c69dcc8cf56a00695b7c8a7be76e670d642e";
hash = "sha256-VQOgS6+G5GCL9dFSze/58OdU7CWT+2BSQFP2N+TlWLc=";
};
nativeBuildInputs = [
beets
setuptools-scm
numpy
aubio
pydub
];
propagatedBuildInputs = [pydub aubio];
# There's no test
doCheck = false;
# pythonImportsCheck = ["beetsplug.bpmanalyser" "pydub" "numpy" "aubio"];
meta = {
description = "A BPM analyzer plugin for Beets music library manager";
homepage = "https://github.com/sampsyo/beets";
};
}