mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
1b71ae2afa
Changelog: https://lists.sr.ht/~lioploum/offpunk-users/%3C170777385215.6.13512070620790331499.266071897%40ploum.eu%3E
65 lines
1.3 KiB
Nix
65 lines
1.3 KiB
Nix
{ fetchFromSourcehut
|
|
, file
|
|
, installShellFiles
|
|
, less
|
|
, lib
|
|
, offpunk
|
|
, python3Packages
|
|
, testers
|
|
, timg
|
|
, xdg-utils
|
|
, xsel
|
|
}:
|
|
|
|
let
|
|
pythonDependencies = with python3Packages; [
|
|
beautifulsoup4
|
|
chardet
|
|
cryptography
|
|
feedparser
|
|
pillow
|
|
readability-lxml
|
|
requests
|
|
setproctitle
|
|
];
|
|
otherDependencies = [
|
|
file
|
|
less
|
|
timg
|
|
xdg-utils
|
|
xsel
|
|
];
|
|
in
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "offpunk";
|
|
version = "2.2";
|
|
pyproject = true;
|
|
|
|
disabled = python3Packages.pythonOlder "3.7";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~lioploum";
|
|
repo = "offpunk";
|
|
rev = "v${version}";
|
|
hash = "sha256-ygVL17qqmNB7hzw1VuYIAbirbaq4EVppWCHSvTl+/Jw=";
|
|
};
|
|
|
|
nativeBuildInputs = [ python3Packages.hatchling installShellFiles ];
|
|
propagatedBuildInputs = otherDependencies ++ pythonDependencies;
|
|
|
|
postInstall = ''
|
|
installManPage man/*.1
|
|
'';
|
|
|
|
passthru.tests.version = testers.testVersion { package = offpunk; };
|
|
|
|
meta = {
|
|
description = "A command-line and offline-first smolnet browser/feed reader";
|
|
homepage = src.meta.homepage;
|
|
license = lib.licenses.agpl3Plus;
|
|
mainProgram = "offpunk";
|
|
maintainers = with lib.maintainers; [ DamienCassou ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|