Skip to content

Commit 3abe655

Browse files
committed
pympress: 1.8.5 -> 1.8.6
Also includes: - Build from source - Modernize
1 parent fd1e5d9 commit 3abe655

File tree

1 file changed

+26
-19
lines changed

1 file changed

+26
-19
lines changed

pkgs/by-name/py/pympress/package.nix

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
lib,
33
stdenv,
44
python3Packages,
5-
fetchPypi,
5+
fetchFromGitHub,
66
wrapGAppsHook3,
77
gtk3,
88
gobject-introspection,
@@ -15,14 +15,31 @@
1515

1616
python3Packages.buildPythonApplication rec {
1717
pname = "pympress";
18-
version = "1.8.5";
18+
version = "1.8.6";
1919

20-
src = fetchPypi {
21-
inherit version;
22-
pname = "pympress";
23-
hash = "sha256-Kb05EV0F8lTamTq7pC1UoOkYf04s58NjMksVE2xTC/Y=";
20+
src = fetchFromGitHub {
21+
owner = "cimbali";
22+
repo = "pympress";
23+
tag = "v${version}";
24+
hash = "sha256-rIlYd5SMWYeqdMHyW3d1ggKnUMCJCDP5uw25d7zG2DU=";
2425
};
2526

27+
build-system = with python3Packages; [
28+
setuptools
29+
babel
30+
];
31+
32+
dependencies =
33+
with python3Packages;
34+
[
35+
watchdog
36+
pycairo
37+
pygobject3
38+
]
39+
++ lib.optional withVLC [
40+
python-vlc
41+
];
42+
2643
nativeBuildInputs = [
2744
wrapGAppsHook3
2845
gobject-introspection
@@ -44,23 +61,13 @@ python3Packages.buildPythonApplication rec {
4461
gst_all_1.gst-vaapi
4562
];
4663

47-
propagatedBuildInputs =
48-
with python3Packages;
49-
[
50-
pycairo
51-
pygobject3
52-
setuptools
53-
watchdog
54-
]
55-
++ lib.optional withVLC python-vlc;
56-
5764
doCheck = false; # there are no tests
5865

59-
meta = with lib; {
66+
meta = {
6067
description = "Simple yet powerful PDF reader designed for dual-screen presentations";
6168
mainProgram = "pympress";
62-
license = licenses.gpl2Plus;
69+
license = lib.licenses.gpl2Plus;
6370
homepage = "https://cimbali.github.io/pympress/";
64-
maintainers = [ maintainers.tbenst ];
71+
maintainers = with lib.maintainers; [ tbenst ];
6572
};
6673
}

0 commit comments

Comments
 (0)