betanin: 0.4.0 -> 0.5.6
This commit is contained in:
parent
5f20482f72
commit
3ef84a6b8c
@ -1,43 +1,45 @@
|
||||
{ lib
|
||||
, callPackage
|
||||
, buildNpmPackage
|
||||
, fetchFromGitHub
|
||||
, python3
|
||||
, beets
|
||||
}:
|
||||
|
||||
let
|
||||
py = python3.pkgs;
|
||||
|
||||
version = "0.4.0.ffe45c02";
|
||||
version = "0.5.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "xeals";
|
||||
owner = "sentriz";
|
||||
repo = "betanin";
|
||||
rev = "ffe45c028037fc1659f62a9cdc9e1413dc2f358d";
|
||||
hash = "sha256-5d8Y7PDlhkdVRVX+KvpiQ2WYNRELwc+ya5s4Qi+YQpI=";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-8JzZfxXzey6vGwsnpXTea/gTMFwmeeavimn5njHIEg0=";
|
||||
};
|
||||
|
||||
client = callPackage ./client {
|
||||
inherit src version;
|
||||
};
|
||||
in
|
||||
py.buildPythonApplication {
|
||||
pname = "betanin";
|
||||
client = buildNpmPackage {
|
||||
pname = "betanin_client";
|
||||
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 ];
|
||||
postPatch = ''
|
||||
export clientDistDir="${client}/lib/node_modules/betanin/dist/"
|
||||
export libPrefix="${python3.libPrefix}"
|
||||
substituteAllInPlace betanin/paths.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs =
|
||||
(builtins.attrValues {
|
||||
inherit (py)
|
||||
buildInputs = with python3.pkgs; [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = (with python3.pkgs; [
|
||||
apprise
|
||||
alembic
|
||||
click
|
||||
@ -56,8 +58,8 @@ py.buildPythonApplication {
|
||||
python-socketio
|
||||
sqlalchemy
|
||||
sqlalchemy-utils
|
||||
toml;
|
||||
}) ++ [
|
||||
toml
|
||||
]) ++ [
|
||||
beets
|
||||
];
|
||||
|
||||
@ -66,6 +68,6 @@ py.buildPythonApplication {
|
||||
description = "beets based mitm of your torrent client and music player";
|
||||
license = lib.licenses.gpl3Only;
|
||||
maintainers = [ ];
|
||||
platforms = python3.meta.platforms;
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user