mirror of
https://github.com/sstent/vmimages.git
synced 2026-05-01 09:13:01 +00:00
sync
This commit is contained in:
37
pkgs/beets-bpmanalyser/default copy.nix
Normal file
37
pkgs/beets-bpmanalyser/default copy.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
39
pkgs/beets-bpmanalyser/default.nix
Normal file
39
pkgs/beets-bpmanalyser/default.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user