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";
};
}

View File

@@ -0,0 +1,53 @@
{
lib,
python3,
fetchFromGitHub,
}:
python3.pkgs.buildPythonApplication rec {
pname = "cyberdrop-dl";
version = "5.3.41-unstable-2024-07-17";
pyproject = true;
src = fetchFromGitHub {
owner = "jbsparrow";
repo = "cyberdropdownloader";
rev = "e42a11637abfe14bfe2c2ae467284f1b113ea041";
hash = "sha256-VnKLbU4JEr6ctBBfagvrtpbZn+8u4H75xucU3TumIN4=";
};
patches = [ ./unpin-dependencies.patch ];
nativeBuildInputs = [ python3.pkgs.poetry-core ];
propagatedBuildInputs = with python3.pkgs; [
aiofiles
aiohttp
aiolimiter
aiosqlite
asyncpraw
beautifulsoup4
browser-cookie3
certifi
filedate
get-video-properties
inquirerpy
mediafire
mutagen
myjdapi
pillow
platformdirs
pyyaml
rich
];
pythonImportsCheck = [ "cyberdrop_dl" ];
meta = with lib; {
description = "Bulk Gallery Downloader for Cyberdrop.me and Other Sites";
homepage = "https://github.com/jbsparrow/cyberdropdownloader";
license = licenses.gpl3Only;
maintainers = with maintainers; [ ];
mainProgram = "cyberdrop-dl";
};
}

View File

@@ -4,5 +4,6 @@
# example = pkgs.callPackage ./example { };
npiperelay = pkgs.callPackage ./npiperelay {};
beets-originquery = pkgs.callPackage ./beets-originquery {};
beets-bpmanalyser = pkgs.callPackage ./beets-bpmanalyser {};
prometheus-api-client = pkgs.callPackage ./prometheus-api-client {};
}