Merge pull request #221018 from DamienCassou/offpunk-1.9.2
This commit is contained in:
commit
ac718d0286
1 changed files with 15 additions and 23 deletions
|
@ -3,10 +3,8 @@
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
less,
|
less,
|
||||||
lib,
|
lib,
|
||||||
makeWrapper,
|
|
||||||
offpunk,
|
offpunk,
|
||||||
python3,
|
python3Packages,
|
||||||
stdenv,
|
|
||||||
testers,
|
testers,
|
||||||
timg,
|
timg,
|
||||||
xdg-utils,
|
xdg-utils,
|
||||||
|
@ -14,7 +12,7 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
pythonDependencies = with python3.pkgs; [
|
pythonDependencies = with python3Packages; [
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
cryptography
|
cryptography
|
||||||
feedparser
|
feedparser
|
||||||
|
@ -30,40 +28,34 @@ let
|
||||||
xsel
|
xsel
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
python3Packages.buildPythonPackage rec {
|
||||||
pname = "offpunk";
|
pname = "offpunk";
|
||||||
version = "1.9";
|
version = "1.9.2";
|
||||||
|
format = "flit";
|
||||||
|
|
||||||
|
disabled = python3Packages.pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromSourcehut {
|
src = fetchFromSourcehut {
|
||||||
owner = "~lioploum";
|
owner = "~lioploum";
|
||||||
repo = "offpunk";
|
repo = "offpunk";
|
||||||
rev = "v${finalAttrs.version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-sxX4/7jbNbLwHVfE1lDtjr/luby5zAf6Hy1RcwXZLBA=";
|
sha256 = "sha256-CYsuoj5/BaaboDRtcOrGzJoZDCfOLs7ROVWLVjOAnRU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
buildInputs = otherDependencies ++ pythonDependencies;
|
propagatedBuildInputs = otherDependencies ++ pythonDependencies;
|
||||||
|
|
||||||
installPhase = ''
|
postInstall = ''
|
||||||
runHook preInstall
|
installManPage man/*.1
|
||||||
|
|
||||||
install -D ./offpunk.py $out/bin/offpunk
|
|
||||||
|
|
||||||
wrapProgram $out/bin/offpunk \
|
|
||||||
--set PYTHONPATH "$PYTHONPATH" \
|
|
||||||
--set PATH ${lib.makeBinPath otherDependencies}
|
|
||||||
|
|
||||||
installManPage man/*.1
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.tests.version = testers.testVersion { package = offpunk; };
|
passthru.tests.version = testers.testVersion { package = offpunk; };
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "An Offline-First browser for the smolnet ";
|
description = "An Offline-First browser for the smolnet ";
|
||||||
homepage = finalAttrs.src.meta.homepage;
|
homepage = src.meta.homepage;
|
||||||
maintainers = with maintainers; [ DamienCassou ];
|
maintainers = with maintainers; [ DamienCassou ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
license = licenses.bsd2;
|
license = licenses.bsd2;
|
||||||
};
|
};
|
||||||
})
|
}
|
||||||
|
|
Loading…
Reference in a new issue