about summary refs log tree commit diff
path: root/pkgs/development/python-modules/qpageview/default.nix
blob: db5ea8ad1f7dfac9ec5177b9234a49b2376ef650 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ lib
, fetchFromGitHub
, buildPythonPackage
, python3Packages
, pythonOlder
}:

python3Packages.buildPythonPackage rec {
  pname = "qpageview";
  version = "0.6.2";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "frescobaldi";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-XFMTOD7ums8sbFHUViEI9q6/rCjUmEtXAdd3/OmLsHU=";
  };

  propagatedBuildInputs = with python3Packages; [ pyqt5 poppler-qt5 pycups ];

  pythonImportsCheck = [ "qpageview" ];

  meta = with lib; {
    description = "A page-based viewer widget for Qt5/PyQt5";
    homepage = "https://github.com/frescobaldi/qpageview";
    changelog = "https://github.com/frescobaldi/qpageview/blob/${src.rev}/ChangeLog";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ camillemndn ];
  };
}