diff options
Diffstat (limited to 'pkgs/by-name/of/offpunk/package.nix')
-rw-r--r-- | pkgs/by-name/of/offpunk/package.nix | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/pkgs/by-name/of/offpunk/package.nix b/pkgs/by-name/of/offpunk/package.nix new file mode 100644 index 00000000000..e0814a43ef8 --- /dev/null +++ b/pkgs/by-name/of/offpunk/package.nix @@ -0,0 +1,62 @@ +{ 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.buildPythonPackage rec { + pname = "offpunk"; + version = "2.0"; + format = "pyproject"; + + disabled = python3Packages.pythonOlder "3.7"; + + src = fetchFromSourcehut { + owner = "~lioploum"; + repo = "offpunk"; + rev = "v${version}"; + hash = "sha256-6ftc2goCNgvXf5kszvjeSHn24Hn73jq26Irl5jiN6pk="; + }; + + nativeBuildInputs = [ python3Packages.hatchling installShellFiles ]; + propagatedBuildInputs = otherDependencies ++ pythonDependencies; + + postInstall = '' + installManPage man/*.1 + ''; + + meta = with lib; { + description = "An Offline-First browser for the smolnet "; + homepage = src.meta.homepage; + maintainers = with maintainers; [ DamienCassou ]; + platforms = platforms.linux; + license = licenses.agpl3Plus; + }; +} |