nixpkgs/pkgs/by-name/of/offpunk/package.nix

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

65 lines
1.2 KiB
Nix
Raw Normal View History

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