tribler: add changelog, cleanup

This commit is contained in:
John Titor 2024-05-11 11:23:18 +05:30
parent f8c1e5bdbb
commit 961427a5c6
No known key found for this signature in database
GPG Key ID: 29B0514F4E3C1CC0

View File

@ -1,12 +1,13 @@
{ lib
, stdenv
, fetchurl
, fetchPypi
, python3
, makeWrapper
, libtorrent-rasterbar-1_2_x
, qt5
, nix-update-script
{
lib,
stdenv,
fetchurl,
fetchPypi,
python3,
makeWrapper,
libtorrent-rasterbar-1_2_x,
qt5,
nix-update-script,
}:
let
@ -29,57 +30,55 @@ stdenv.mkDerivation (finalAttrs: {
qt5.wrapQtAppsHook
];
buildInputs = [
python3.pkgs.python
];
buildInputs = [ python3.pkgs.python ];
pythonPath = [
libtorrent
] ++ (with python3.pkgs; [
# requirements-core.txt
aiohttp
aiohttp-apispec
anyio
chardet
configobj
cryptography
decorator
faker
libnacl
lz4
marshmallow
netifaces
networkx
pony
psutil
pyasn1
pydantic_1
pyopenssl
pyyaml
sentry-sdk
service-identity
yappi
yarl
bitarray
filelock
(pyipv8.overrideAttrs (p: rec {
version = "2.10.0";
src = fetchPypi {
inherit (p) pname;
inherit version;
hash = "sha256-yxiXBxBiPokequm+vjsHIoG9kQnRnbsOx3mYOd8nmiU=";
};
}))
file-read-backwards
brotli
human-readable
# requirements.txt
pillow
pyqt5
#pyqt5-sip
pyqtgraph
pyqtwebengine
]);
pythonPath =
[ libtorrent ]
++ (with python3.pkgs; [
# requirements-core.txt
aiohttp
aiohttp-apispec
anyio
chardet
configobj
cryptography
decorator
faker
libnacl
lz4
marshmallow
netifaces
networkx
pony
psutil
pyasn1
pydantic_1
pyopenssl
pyyaml
sentry-sdk
service-identity
yappi
yarl
bitarray
filelock
(pyipv8.overrideAttrs (p: rec {
version = "2.10.0";
src = fetchPypi {
inherit (p) pname;
inherit version;
hash = "sha256-yxiXBxBiPokequm+vjsHIoG9kQnRnbsOx3mYOd8nmiU=";
};
}))
file-read-backwards
brotli
human-readable
# requirements.txt
pillow
pyqt5
#pyqt5-sip
pyqtgraph
pyqtwebengine
]);
installPhase = ''
mkdir -pv $out
@ -107,14 +106,19 @@ stdenv.mkDerivation (finalAttrs: {
export QT_PLUGIN_PATH="${qt5.qtsvg.bin}/${qt5.qtbase.qtPluginPrefix}"
'';
passthru.updateScript = nix-update-script {};
passthru.updateScript = nix-update-script { };
meta = with lib; {
meta = {
description = "Decentralised P2P filesharing client based on the Bittorrent protocol";
mainProgram = "tribler";
homepage = "https://www.tribler.org/";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ xvapx viric mkg20001 ];
platforms = platforms.linux;
changelog = "https://github.com/Tribler/tribler/releases/tag/v${finalAttrs.version}";
license = lib.licenses.lgpl21Plus;
maintainers = with lib.maintainers; [
xvapx
viric
mkg20001
];
platforms = lib.platforms.linux;
};
})