nixpkgs/pkgs/applications/networking/browsers/offpunk/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

63 lines
1.2 KiB
Nix
Raw Normal View History

2022-07-02 10:11:45 +00:00
{
fetchFromSourcehut,
installShellFiles,
2022-07-02 10:11:45 +00:00
less,
lib,
offpunk,
python3Packages,
testers,
2022-07-02 10:11:45 +00:00
timg,
xdg-utils,
xsel,
}:
let
pythonDependencies = with python3Packages; [
2022-07-02 10:11:45 +00:00
beautifulsoup4
2023-07-31 12:28:25 +00:00
chardet
2022-07-02 10:11:45 +00:00
cryptography
feedparser
pillow
readability-lxml
requests
setproctitle
];
otherDependencies = [
less
timg
xdg-utils
xsel
];
in
python3Packages.buildPythonPackage rec {
2022-07-02 10:11:45 +00:00
pname = "offpunk";
2023-07-31 12:28:25 +00:00
version = "1.10";
2023-03-13 16:19:30 +00:00
format = "flit";
disabled = python3Packages.pythonOlder "3.7";
2022-07-02 10:11:45 +00:00
src = fetchFromSourcehut {
owner = "~lioploum";
2022-07-02 10:11:45 +00:00
repo = "offpunk";
rev = "v${version}";
2023-07-31 12:28:25 +00:00
hash = "sha256-+jGKPPnKZHn+l6VAwuae6kICwR7ymkYJjsM2OHQAEmU=";
2022-07-02 10:11:45 +00:00
};
nativeBuildInputs = [ installShellFiles ];
propagatedBuildInputs = otherDependencies ++ pythonDependencies;
2022-07-02 10:11:45 +00:00
postInstall = ''
installManPage man/*.1
2022-07-02 10:11:45 +00:00
'';
passthru.tests.version = testers.testVersion { package = offpunk; };
2022-08-04 11:43:46 +00:00
2022-07-02 10:11:45 +00:00
meta = with lib; {
description = "An Offline-First browser for the smolnet ";
homepage = src.meta.homepage;
2022-07-02 10:11:45 +00:00
maintainers = with maintainers; [ DamienCassou ];
platforms = platforms.linux;
license = licenses.bsd2;
};
}