betanin: 0.4.0 -> 0.5.6
Some checks failed
CI / checks (nur) (push) Successful in 3m29s
CI / build-and-update (xeals, xeals) (push) Failing after 15m41s

This commit is contained in:
xeals 2024-08-15 14:05:42 +10:00
parent 5f20482f72
commit 3ef84a6b8c
Signed by: xeals
SSH Key Fingerprint: SHA256:pRv+8swQDA+/LuZ7NHj9m006BbKexlNK62OUA01ZZBc

View File

@ -1,43 +1,45 @@
{ lib { lib
, callPackage , buildNpmPackage
, fetchFromGitHub , fetchFromGitHub
, python3 , python3
, beets , beets
}: }:
let let
py = python3.pkgs; version = "0.5.6";
version = "0.4.0.ffe45c02";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "xeals"; owner = "sentriz";
repo = "betanin"; repo = "betanin";
rev = "ffe45c028037fc1659f62a9cdc9e1413dc2f358d"; rev = "v${version}";
hash = "sha256-5d8Y7PDlhkdVRVX+KvpiQ2WYNRELwc+ya5s4Qi+YQpI="; hash = "sha256-8JzZfxXzey6vGwsnpXTea/gTMFwmeeavimn5njHIEg0=";
}; };
client = callPackage ./client { client = buildNpmPackage {
inherit src version; pname = "betanin_client";
};
in
py.buildPythonApplication {
pname = "betanin";
inherit version src; inherit version src;
clientDistDir = "${client}/lib/node_modules/betanin/dist/"; sourceRoot = "${src.name}/betanin_client";
doCheck = false; npmDepsHash = "sha256-VkCQKpkDCTDejv8eRAN2Zfbq8TlWLdtqVJU3fo9hQrI=";
NODE_OPTIONS = "--openssl-legacy-provider";
};
in
python3.pkgs.buildPythonApplication {
pname = "betanin";
inherit version src;
format = "pyproject";
patches = [ ./paths.patch ]; patches = [ ./paths.patch ];
postPatch = '' postPatch = ''
export clientDistDir="${client}/lib/node_modules/betanin/dist/"
export libPrefix="${python3.libPrefix}" export libPrefix="${python3.libPrefix}"
substituteAllInPlace betanin/paths.py substituteAllInPlace betanin/paths.py
''; '';
propagatedBuildInputs = buildInputs = with python3.pkgs; [ setuptools ];
(builtins.attrValues {
inherit (py) propagatedBuildInputs = (with python3.pkgs; [
apprise apprise
alembic alembic
click click
@ -56,8 +58,8 @@ py.buildPythonApplication {
python-socketio python-socketio
sqlalchemy sqlalchemy
sqlalchemy-utils sqlalchemy-utils
toml; toml
}) ++ [ ]) ++ [
beets beets
]; ];
@ -66,6 +68,6 @@ py.buildPythonApplication {
description = "beets based mitm of your torrent client and music player"; description = "beets based mitm of your torrent client and music player";
license = lib.licenses.gpl3Only; license = lib.licenses.gpl3Only;
maintainers = [ ]; maintainers = [ ];
platforms = python3.meta.platforms; platforms = lib.platforms.linux;
}; };
} }