betanin: 0.4.0 -> 0.5.6
This commit is contained in:
parent
5f20482f72
commit
904cdf1956
@ -1,71 +1,82 @@
|
|||||||
{ 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";
|
||||||
|
inherit version src;
|
||||||
|
|
||||||
|
sourceRoot = "${src.name}/betanin_client";
|
||||||
|
|
||||||
|
npmDepsHash = "sha256-VkCQKpkDCTDejv8eRAN2Zfbq8TlWLdtqVJU3fo9hQrI=";
|
||||||
|
NODE_ENV = "production";
|
||||||
|
NODE_OPTIONS = "--openssl-legacy-provider";
|
||||||
|
|
||||||
|
npmInstallFlags = [ "--include=dev" ];
|
||||||
|
installPhase = ''
|
||||||
|
cp -r dist $out
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
py.buildPythonApplication {
|
python3.pkgs.buildPythonApplication {
|
||||||
pname = "betanin";
|
pname = "betanin";
|
||||||
inherit version src;
|
inherit version src;
|
||||||
|
format = "pyproject";
|
||||||
clientDistDir = "${client}/lib/node_modules/betanin/dist/";
|
|
||||||
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
patches = [ ./paths.patch ];
|
patches = [ ./paths.patch ];
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
export clientDistDir="${client}"
|
||||||
export libPrefix="${python3.libPrefix}"
|
export libPrefix="${python3.libPrefix}"
|
||||||
substituteAllInPlace betanin/paths.py
|
substituteAllInPlace betanin/paths.py
|
||||||
|
|
||||||
|
# pythonRelaxDepsHook doesn't work
|
||||||
|
sed -i 's/Flask <3.0.0/Flask/' pyproject.toml
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs =
|
build-system = with python3.pkgs; [ setuptools ];
|
||||||
(builtins.attrValues {
|
|
||||||
inherit (py)
|
dependencies = (with python3.pkgs; [
|
||||||
apprise
|
apprise
|
||||||
alembic
|
alembic
|
||||||
click
|
click
|
||||||
flask
|
flask
|
||||||
flask-cors
|
flask-cors
|
||||||
flask-jwt-extended
|
flask-jwt-extended
|
||||||
flask_migrate
|
flask_migrate
|
||||||
flask-restx
|
flask-restx
|
||||||
flask-socketio
|
flask-socketio
|
||||||
flask-sqlalchemy
|
flask-sqlalchemy
|
||||||
gevent
|
gevent
|
||||||
pyxdg
|
pyxdg
|
||||||
loguru
|
loguru
|
||||||
ptyprocess
|
ptyprocess
|
||||||
python-engineio
|
python-engineio
|
||||||
python-socketio
|
python-socketio
|
||||||
sqlalchemy
|
sqlalchemy
|
||||||
sqlalchemy-utils
|
sqlalchemy-utils
|
||||||
toml;
|
toml
|
||||||
}) ++ [
|
]) ++ [
|
||||||
beets
|
beets
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://github.com/sentriz/betanin";
|
homepage = "https://github.com/sentriz/betanin";
|
||||||
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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user