smoked-salmon: 0.9.7.4 -> 0.10.1 (#497942)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
ffmpeg-headless,
|
||||
curl,
|
||||
flac,
|
||||
lame,
|
||||
mp3val,
|
||||
@@ -10,7 +10,7 @@
|
||||
}:
|
||||
let
|
||||
runtimeDeps = [
|
||||
ffmpeg-headless
|
||||
curl
|
||||
flac
|
||||
lame
|
||||
mp3val
|
||||
@@ -19,56 +19,61 @@ let
|
||||
in
|
||||
python3Packages.buildPythonApplication (finalAttrs: {
|
||||
pname = "smoked-salmon";
|
||||
version = "0.9.7.4";
|
||||
version = "0.10.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "smokin-salmon";
|
||||
repo = "smoked-salmon";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-JOwqu/Hu7BjYLo3DdL6o+9TI/OQvlgj5Xu8WQ0cujwo=";
|
||||
hash = "sha256-kgBTdQTWzGmKWsHjtazaVvQoTulyF5WNFPEUuoanCo4=";
|
||||
};
|
||||
|
||||
# Upstream tends to use very narrow version constraints
|
||||
pythonRelaxDeps = true;
|
||||
|
||||
build-system = with python3Packages; [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
# `build-system` requirements are seemingly not covered by pythonRelaxDeps
|
||||
postPatch = ''
|
||||
sed -i 's/requires = \["uv_build.*"\]/requires = ["uv_build"]/' pyproject.toml
|
||||
'';
|
||||
|
||||
dependencies = with python3Packages; [
|
||||
aiohttp
|
||||
aiohttp-jinja2
|
||||
beautifulsoup4
|
||||
bitstring
|
||||
click
|
||||
deluge-client
|
||||
ffmpeg-python
|
||||
filetype
|
||||
httpx
|
||||
humanfriendly
|
||||
jinja2
|
||||
msgspec
|
||||
musicbrainzngs
|
||||
mutagen
|
||||
pillow
|
||||
platformdirs
|
||||
pycambia
|
||||
pyoxipng
|
||||
pyperclip
|
||||
qbittorrent-api
|
||||
ratelimit
|
||||
requests
|
||||
rich
|
||||
send2trash
|
||||
setuptools
|
||||
torf
|
||||
tqdm
|
||||
transmission-rpc
|
||||
unidecode
|
||||
wheel
|
||||
];
|
||||
build-system = with python3Packages; [ uv-build ];
|
||||
|
||||
dependencies =
|
||||
with python3Packages;
|
||||
[
|
||||
aiohttp
|
||||
aiohttp-jinja2
|
||||
aiolimiter
|
||||
anyio
|
||||
asyncclick
|
||||
av
|
||||
beautifulsoup4
|
||||
deluge-client
|
||||
humanfriendly
|
||||
jinja2
|
||||
msgspec
|
||||
musicbrainzngs
|
||||
mutagen
|
||||
numpy
|
||||
pillow
|
||||
platformdirs
|
||||
pycambia
|
||||
pyimgbox
|
||||
pyoxipng
|
||||
pyperclip
|
||||
qbittorrent-api
|
||||
requests
|
||||
send2trash
|
||||
tenacity
|
||||
torf
|
||||
tqdm
|
||||
transmission-rpc
|
||||
unidecode
|
||||
]
|
||||
++ aiohttp.optional-dependencies.speedups
|
||||
++ beautifulsoup4.optional-dependencies.lxml
|
||||
++ msgspec.optional-dependencies.toml;
|
||||
|
||||
makeWrapperArgs = [
|
||||
"--suffix"
|
||||
@@ -82,7 +87,7 @@ python3Packages.buildPythonApplication (finalAttrs: {
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Toolkit for checking, editing and uploading music to Gazelle-based trackers";
|
||||
description = "Toolkit for checking, editing and uploading music. Catered to Gazelle-based trackers";
|
||||
homepage = "https://github.com/smokin-salmon/smoked-salmon";
|
||||
license = with lib.licenses; [ asl20 ];
|
||||
mainProgram = "salmon";
|
||||
|
||||
@@ -2,39 +2,26 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
openssl,
|
||||
pkg-config,
|
||||
pytestCheckHook,
|
||||
rustPlatform,
|
||||
}:
|
||||
let
|
||||
cargoLockPatch = (
|
||||
fetchpatch {
|
||||
name = "cargo.lock.patch";
|
||||
url = "https://github.com/KyokoMiki/pycambia/commit/00446e13c20a461c323b119e16f3f57489ba662d.patch";
|
||||
hash = "sha256-N7F67VRxfndoN8NllmGKEePOh3mgbjlNaToUvxh+IrE=";
|
||||
}
|
||||
);
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "pycambia";
|
||||
version = "0.1.0";
|
||||
version = "0.2.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "KyokoMiki";
|
||||
repo = "pycambia";
|
||||
tag = version;
|
||||
hash = "sha256-ZflLy6Qa4tBlPZkTya3ELu463qcnRcMS57a6FfHpSNE=";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-5UHWAIR+qo16UUsi9D0e6W8UmQ4HUujNWLfJpyIrCUI=";
|
||||
};
|
||||
|
||||
patches = [ cargoLockPatch ];
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoVendor {
|
||||
inherit src;
|
||||
hash = "sha256-jmdf+Idg9PR4jgZ7bexPsAyGj86vGxLseTWXnhzP7+E=";
|
||||
patches = [ cargoLockPatch ];
|
||||
inherit (finalAttrs) src;
|
||||
hash = "sha256-w7n/W7PDC3+DPCb//X462mowhEPw0k3HA1raAeu4t/c=";
|
||||
};
|
||||
|
||||
buildInputs = [ openssl ];
|
||||
@@ -55,4 +42,4 @@ buildPythonPackage rec {
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ undefined-landmark ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user