Merge pull request #221018 from DamienCassou/offpunk-1.9.2

authored by Damien Cassou and committed by GitHub ac718d02 a8661014

+15 -23
+15 -23
pkgs/applications/networking/browsers/offpunk/default.nix
··· 3 installShellFiles, 4 less, 5 lib, 6 - makeWrapper, 7 offpunk, 8 - python3, 9 - stdenv, 10 testers, 11 timg, 12 xdg-utils, ··· 14 }: 15 16 let 17 - pythonDependencies = with python3.pkgs; [ 18 beautifulsoup4 19 cryptography 20 feedparser ··· 30 xsel 31 ]; 32 in 33 - stdenv.mkDerivation (finalAttrs: { 34 pname = "offpunk"; 35 - version = "1.9"; 36 37 src = fetchFromSourcehut { 38 owner = "~lioploum"; 39 repo = "offpunk"; 40 - rev = "v${finalAttrs.version}"; 41 - sha256 = "sha256-sxX4/7jbNbLwHVfE1lDtjr/luby5zAf6Hy1RcwXZLBA="; 42 }; 43 44 - nativeBuildInputs = [ makeWrapper installShellFiles ]; 45 - buildInputs = otherDependencies ++ pythonDependencies; 46 - 47 - installPhase = '' 48 - runHook preInstall 49 - 50 - install -D ./offpunk.py $out/bin/offpunk 51 52 - wrapProgram $out/bin/offpunk \ 53 - --set PYTHONPATH "$PYTHONPATH" \ 54 - --set PATH ${lib.makeBinPath otherDependencies} 55 - 56 - installManPage man/*.1 57 - runHook postInstall 58 ''; 59 60 passthru.tests.version = testers.testVersion { package = offpunk; }; 61 62 meta = with lib; { 63 description = "An Offline-First browser for the smolnet "; 64 - homepage = finalAttrs.src.meta.homepage; 65 maintainers = with maintainers; [ DamienCassou ]; 66 platforms = platforms.linux; 67 license = licenses.bsd2; 68 }; 69 - })
··· 3 installShellFiles, 4 less, 5 lib, 6 offpunk, 7 + python3Packages, 8 testers, 9 timg, 10 xdg-utils, ··· 12 }: 13 14 let 15 + pythonDependencies = with python3Packages; [ 16 beautifulsoup4 17 cryptography 18 feedparser ··· 28 xsel 29 ]; 30 in 31 + python3Packages.buildPythonPackage rec { 32 pname = "offpunk"; 33 + version = "1.9.2"; 34 + format = "flit"; 35 + 36 + disabled = python3Packages.pythonOlder "3.7"; 37 38 src = fetchFromSourcehut { 39 owner = "~lioploum"; 40 repo = "offpunk"; 41 + rev = "v${version}"; 42 + sha256 = "sha256-CYsuoj5/BaaboDRtcOrGzJoZDCfOLs7ROVWLVjOAnRU="; 43 }; 44 45 + nativeBuildInputs = [ installShellFiles ]; 46 + propagatedBuildInputs = otherDependencies ++ pythonDependencies; 47 48 + postInstall = '' 49 + installManPage man/*.1 50 ''; 51 52 passthru.tests.version = testers.testVersion { package = offpunk; }; 53 54 meta = with lib; { 55 description = "An Offline-First browser for the smolnet "; 56 + homepage = src.meta.homepage; 57 maintainers = with maintainers; [ DamienCassou ]; 58 platforms = platforms.linux; 59 license = licenses.bsd2; 60 }; 61 + }