Unverified Commit 4e5d5eec authored by Damien Cassou's avatar Damien Cassou Committed by GitHub
Browse files

Merge pull request #267881 from Siroj42/update-offpunk

parents f9391924 d3079756
Loading
Loading
Loading
Loading
+17 −17
Original line number Diff line number Diff line
{
  fetchFromSourcehut,
  installShellFiles,
  less,
  lib,
  offpunk,
  python3Packages,
  testers,
  timg,
  xdg-utils,
  xsel,
{ fetchFromSourcehut
, file
, installShellFiles
, less
, lib
, offpunk
, python3Packages
, testers
, timg
, xdg-utils
, xsel
,
}:

let
@@ -23,6 +24,7 @@ let
    setproctitle
  ];
  otherDependencies = [
    file
    less
    timg
    xdg-utils
@@ -31,7 +33,7 @@ let
in
python3Packages.buildPythonPackage rec {
  pname = "offpunk";
  version = "1.10";
  version = "2.0";
  format = "pyproject";

  disabled = python3Packages.pythonOlder "3.7";
@@ -40,23 +42,21 @@ python3Packages.buildPythonPackage rec {
    owner = "~lioploum";
    repo = "offpunk";
    rev = "v${version}";
    hash = "sha256-+jGKPPnKZHn+l6VAwuae6kICwR7ymkYJjsM2OHQAEmU=";
    hash = "sha256-6ftc2goCNgvXf5kszvjeSHn24Hn73jq26Irl5jiN6pk=";
  };

  nativeBuildInputs = [ python3Packages.flit-core installShellFiles ];
  nativeBuildInputs = [ python3Packages.hatchling installShellFiles ];
  propagatedBuildInputs = otherDependencies ++ pythonDependencies;

  postInstall = ''
    installManPage man/*.1
  '';

  passthru.tests.version = testers.testVersion { package = offpunk; };

  meta = with lib; {
    description = "An Offline-First browser for the smolnet ";
    homepage = src.meta.homepage;
    maintainers = with maintainers; [ DamienCassou ];
    platforms = platforms.linux;
    license = licenses.bsd2;
    license = licenses.agpl3Plus;
  };
}
+0 −2
Original line number Diff line number Diff line
@@ -32527,8 +32527,6 @@ with pkgs;
  noson = libsForQt5.callPackage ../applications/audio/noson { };
  offpunk = callPackage ../applications/networking/browsers/offpunk { };
  owl-compositor = callPackage ../applications/window-managers/owl { };
  p2pool = callPackage ../applications/misc/p2pool { };