tremc: 0.9.3 -> 0.9.5 (#439386)

This commit is contained in:
Yohann Boniface
2025-10-18 11:25:23 +00:00
committed by GitHub

View File

@@ -2,7 +2,6 @@
lib, lib,
stdenv, stdenv,
fetchFromGitHub, fetchFromGitHub,
fetchpatch,
python3Packages, python3Packages,
x11Support ? !stdenv.hostPlatform.isDarwin, x11Support ? !stdenv.hostPlatform.isDarwin,
xclip ? null, xclip ? null,
@@ -10,36 +9,20 @@
useGeoIP ? false, # Require /var/lib/geoip-databases/GeoIP.dat useGeoIP ? false, # Require /var/lib/geoip-databases/GeoIP.dat
}: }:
let let
wrapperPath = lib.makeBinPath ( version = "0.9.5";
lib.optional x11Support xclip ++ lib.optional stdenv.hostPlatform.isDarwin pbcopy
);
in in
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication {
pname = "tremc"; pname = "tremc";
version = "0.9.3"; inherit version;
format = "other"; pyproject = false;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tremc"; owner = "tremc";
repo = "tremc"; repo = "tremc";
rev = version; tag = version;
hash = "sha256-219rntmetmj1JFG+4NyYMFTWmrHKJL7fnLoMIvnTP4Y="; hash = "sha256-t7GH3flTLN8O+nnv/kwwzu5x3VoCyF11bqb1EJ8LQs8=";
}; };
patches = [
# Remove when tremc > 0.9.3 is released
(fetchpatch {
url = "https://github.com/tremc/tremc/commit/a8aaf9a6728a9ef3d8f13b3603456b0086122891.patch";
hash = "sha256-+HYdWTbcpvZqjshdHLZ+Svmr6U/aKFc3sy0aka6rn/A=";
name = "support-transmission-4.patch";
})
];
buildInputs = with python3Packages; [
python
wrapPython
];
pythonPath = pythonPath =
with python3Packages; with python3Packages;
[ [
@@ -51,18 +34,19 @@ python3Packages.buildPythonApplication rec {
dontBuild = true; dontBuild = true;
doCheck = false; doCheck = false;
makeWrapperArgs = [ "--prefix PATH : ${lib.escapeShellArg wrapperPath}" ]; makeFlags = [ "DESTDIR=${placeholder "out"}" ];
installPhase = '' makeWrapperArgs = [
make DESTDIR=$out install "--prefix PATH : ${
wrapPythonPrograms lib.makeBinPath (lib.optional x11Support xclip ++ lib.optional stdenv.hostPlatform.isDarwin pbcopy)
''; }"
];
meta = with lib; { meta = {
description = "Curses interface for transmission"; description = "Curses interface for transmission";
mainProgram = "tremc"; mainProgram = "tremc";
homepage = "https://github.com/tremc/tremc"; homepage = "https://github.com/tremc/tremc";
license = licenses.gpl3Plus; license = lib.licenses.gpl3Plus;
maintainers = with maintainers; [ kashw2 ]; maintainers = with lib.maintainers; [ kashw2 ];
}; };
} }