mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
63 lines
1.2 KiB
Nix
63 lines
1.2 KiB
Nix
{
|
|
fetchFromSourcehut,
|
|
installShellFiles,
|
|
less,
|
|
lib,
|
|
offpunk,
|
|
python3Packages,
|
|
testers,
|
|
timg,
|
|
xdg-utils,
|
|
xsel,
|
|
}:
|
|
|
|
let
|
|
pythonDependencies = with python3Packages; [
|
|
beautifulsoup4
|
|
chardet
|
|
cryptography
|
|
feedparser
|
|
pillow
|
|
readability-lxml
|
|
requests
|
|
setproctitle
|
|
];
|
|
otherDependencies = [
|
|
less
|
|
timg
|
|
xdg-utils
|
|
xsel
|
|
];
|
|
in
|
|
python3Packages.buildPythonPackage rec {
|
|
pname = "offpunk";
|
|
version = "1.10";
|
|
format = "flit";
|
|
|
|
disabled = python3Packages.pythonOlder "3.7";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~lioploum";
|
|
repo = "offpunk";
|
|
rev = "v${version}";
|
|
hash = "sha256-+jGKPPnKZHn+l6VAwuae6kICwR7ymkYJjsM2OHQAEmU=";
|
|
};
|
|
|
|
nativeBuildInputs = [ 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;
|
|
};
|
|
}
|