Skip to content

Commit

Permalink
beeref: init at 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sifmelcara committed Oct 9, 2022
1 parent d032789 commit d14405d
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
47 changes: 47 additions & 0 deletions pkgs/applications/graphics/beeref/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{ python39Packages
, fetchFromGitHub
, lib
}:

# Doesn't work with python 3.10 due to behavior change of extension interface.
# https://github.com/rbreu/beeref/issues/54
with python39Packages;
buildPythonApplication rec {
pname = "beeref";
version = "0.2.0";

src = fetchFromGitHub {
owner = "rbreu";
repo = pname;
rev = "v${version}";
sha256 = "sha256-zlb+ukPMoahwQTCWq2sq5dQveqLQLtn3pKuq+0AIqho=";
};

prePatch = ''
# Relax install dependency requirements
substituteInPlace setup.py \
--replace "pyQt6>=6.1,<=6.1.1" "pyQt6" \
--replace "pyQt6-Qt6>=6.1,<=6.1.1" ""
'';

preCheck = ''
export HOME=$TMPDIR
'';

checkInputs = [ httpretty pytest ];

propagatedBuildInputs = [
setuptools
pyqt6
exif
rectangle-packer
];

meta = with lib; {
homepage = "https://beeref.org/";
description = "A Simple Reference Image Viewer";
license = licenses.gpl3Only;
platforms = platforms.linux;
maintainers = with maintainers; [ sifmelcara ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4980,6 +4980,8 @@ with pkgs;
beetsPackages = lib.recurseIntoAttrs (callPackage ../tools/audio/beets { });
inherit (beetsPackages) beets beets-unstable;

beeref = qt6Packages.callPackage ../applications/graphics/beeref { };

bento4 = callPackage ../tools/video/bento4 { };

bepasty = callPackage ../tools/misc/bepasty { };
Expand Down

0 comments on commit d14405d

Please sign in to comment.