1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 hatchling, 6 pyqt6, 7 poppler-qt5, 8 pycups, 9}: 10 11buildPythonPackage rec { 12 pname = "qpageview"; 13 version = "1.0.1"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "frescobaldi"; 18 repo = "qpageview"; 19 tag = "v${version}"; 20 hash = "sha256-5D+fumQVCfl9ZEHIQmbdXkAuAkiKy6P5+StMWSE+a0A="; 21 }; 22 23 build-system = [ hatchling ]; 24 25 dependencies = [ 26 pyqt6 27 poppler-qt5 28 pycups 29 ]; 30 31 doCheck = false; # no tests 32 33 pythonImportsCheck = [ "qpageview" ]; 34 35 meta = with lib; { 36 description = "Page-based viewer widget for Qt5/PyQt5"; 37 homepage = "https://github.com/frescobaldi/qpageview"; 38 changelog = "https://github.com/frescobaldi/qpageview/blob/${src.tag}/ChangeLog"; 39 license = licenses.gpl3Only; 40 maintainers = with maintainers; [ camillemndn ]; 41 }; 42}